Subject: | Pod::Usage does not find perldoc when perl is relocatable |
When perl is compiled in relocatable mode, $Config{scriptdir} does not
contain a "real" directory name :
$ perl -MConfig -MData::Dumper -e 'print Dumper \%Config' | egrep script
'd_vendorscript' => undef,
'installscript' => '/home/opt/perl/bin/',
'installsitescript' => '/home/opt/perl/bin',
'installvendorscript' => '',
'scriptdir' => '.../',
'scriptdirexp' => '/home/opt/perl/bin/',
'sitescript' => '.../../bin',
'sitescriptexp' => '/home/opt/perl/bin',
'vendorscript' => '',
'vendorscriptexp' => '',
When pod2usage(2) is executed, the path to perldoc is wrong.
I think line :
567 my $progpath = File::Spec->catfile($Config{scriptdir},
'perldoc');
should be :
567 my $progpath = File::Spec->catfile($Config{scriptdirexp},
'perldoc');
Eric