in reply to pod2usage question
The problem is that in the BEGIN block your script chdirs to a different directory from where you invoked the script, so, by the time that pod2usage is executed, the value returned by $0 (which pod2usage relies on) no longer points to the script. This is an easy problem to fix, but I don't understand why your script is chdir-ing in the first place.
the lowliest monk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: pod2usage question
by dwhitney (Beadle) on May 06, 2005 at 23:31 UTC | |
by saintmike (Vicar) on May 07, 2005 at 19:39 UTC |