You can even do the reverse and use your POD as code:
my $str = <<=cut; =head2 Some documentation =cut
The above will assign the POD to $str but also render it when viewed with a POD viewer.
From time to time, I think this would be a cool way to store self-documenting configuration data, but other times I think this might be a far too clever approach.
In reply to Re: Using PerlPod Creatively
by Corion
in thread Using PerlPod Creatively
by samijoseph
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |