Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
$0 in perl pod, not expanding to script nameby spatterson (Pilgrim) |
on Jul 16, 2018 at 07:48 UTC ( [id://1218536]=perlquestion: print w/replies, xml ) | Need Help?? |
spatterson has asked for the wisdom of the Perl Monks concerning the following question: I have a perl script containing some brief documentation in pod format. Normally (or at least outside of perlpod) $0 is the script name, but in perlpod, $0 is output literally as '$0'. Is there any way I can dynamically access the current script name inside perlpod? I'm returning to perl after a few years on PHP & can vaguely remember doing something similar in the past.
Back to
Seekers of Perl Wisdom
|
|