Subject: | do not add arch path to PERL5LIB: perl does it since 5.8.0 |
Since perl 5.8.0, when $dir is in PERL5LIB, perl unshifts both
$dir/$Config{archname} (only if it exists) and $dir into @INC.
local::lib puts both $dir and $dir/Config{archname} in PERL5LIB.
The result is that when we add $dir with local::lib,
$dir/$Config{archname} appears twice in @INC (only if
$dir/$Config{archname} exists).
The problem is visible with "perl -V"
Proposed fix: only add $dir to PERL5LIB as the lower perl version
supported is 5.8.1.
--
Olivier Mengué - http://search.cpan.org/~dolmen/ http://github.com/dolmen/