good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Showing the right POD via Pod::Usageby skx (Parson) |
on Jan 24, 2013 at 22:39 UTC ( [id://1015240]=perlquestion: print w/replies, xml ) | Need Help?? |
skx has asked for the wisdom of the Perl Monks concerning the following question: I've written a program which is distributed as a single script, but implemented as a series of modules. Distributing the script as one file avoids the need to "install", or mess with include-paths. Unfortunately this means that my script looks like this:
This screws up my preferred usage of POd::Usage, as it shows the pod for all the script. I've read the documentation for Pod::Usage, where it suggets using Pod::Find and the current package (__PACKAGE__) but I cannot make it work, as the following demonstrates. Is there a simple solution, or am I out of luck? Test program follows:
Back to
Seekers of Perl Wisdom
|
|