I wonder: In Perl POD is recognized partially by the Perl parser, and there is the __END__
keyword to stop Perl parsing.
If I want to write POD in a shell script (maybe at the end of the script), can that be done, and if so: How?
How (if at all) can I use Perl POD documentation in a shell script?
84 Views Asked by U. Windl At
1
A dummy here document can be used in the shell to make it ignore the POD contents, while
perldoc
will be able to find it. Like this:Doing a
sh podtest
runs the script. Doing aperldoc podtest
shows the doc. Newer versions ofperldoc
(like 3.28) may require option-F
to find the POD.