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
perldocwill be able to find it. Like this:Doing a
sh podtestruns the script. Doing aperldoc podtestshows the doc. Newer versions ofperldoc(like 3.28) may require option-Fto find the POD.