Created
October 23, 2012 11:18
-
-
Save pdl/3938255 to your computer and use it in GitHub Desktop.
Using POD in dispatch tables: a curious issue not documented in the spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!perl -w | |
my $hashref = { | |
# | |
# POD may not appear here | |
# | |
p => sub{ | |
=pod | |
=head1 HERE | |
POD can appear here | |
=cut | |
return 1 | |
} | |
}; | |
$hashref->{p}->(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment