In that case, just post-process it:
=pod Usage: C<$0> =cut $arg = shift(); if (defined($arg) && $arg eq '-h') { for (`pod2text $0`) { s/\$0/$0/; print; } }
In reply to Re^3: $0 in perl pod, not expanding to script name
by hippo
in thread $0 in perl pod, not expanding to script name
by spatterson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |