Skip to content

Instantly share code, notes, and snippets.

@pdl
Created October 23, 2012 11:18
Show Gist options
  • Save pdl/3938255 to your computer and use it in GitHub Desktop.
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
#!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