Subject: | Normalise the detected Perl version |
When building package, CPAN should use the same version of Perl as the CPAN shell was launched with. However, sometimes it seems to forget and use the default install of Perl, and thus build and/or install incorrectly.
The worse case seems to be when you launch CPAN using a Perl described by a relative path...
For example
./legacyperl5/perl -MCPAN -e shell
So in detecting which perl is currently in use, CPAN should run a File::Spec->rel2abs over the detected version to ensure that the current version of Perl is passed through in a higher percentage of cases.