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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: $0 in perl pod, not expanding to script name
by tobyink (Canon) on Jul 16, 2018 at 08:26 UTC | |
|
Re: $0 in perl pod, not expanding to script name
by thanos1983 (Parson) on Jul 16, 2018 at 08:01 UTC | |
by spatterson (Pilgrim) on Jul 16, 2018 at 08:08 UTC | |
by hippo (Archbishop) on Jul 16, 2018 at 08:27 UTC |