Subject: | Cannot use Pod::Usage |
I'm sure there are other modules affected by this, but Pod::Usage is the
one that bit me.
I just installed Perl 5.13.3 with perlbrew on Mac OS 10.5.8, then had a
support program (I no longer remember which one—MacPorts, maybe?) call
Pod::Usage. Unfortunately, it contains the following line:
Show quoted text
> my $progpath = File::Spec->catfile($Config{scriptdir}, 'perldoc');
(It's on line 57 in version 1.36; but that's the one on my current
computer, not the one on which I used perlbrew, and it may be outdated.)
Unlike the binaries, which are symlinked in $PERLBREW_ROOT/bin, the
libraries stay underneath the hierarchy of the specific Perl to which
they are attached; so, when Pod::Usage is trying to execute perldoc,
it's actually looking in a directory, $PERLBREW_ROOT/perls/perl-5.13.3,
that contains instead perldoc5.13.3.