Subject: | Test::Harness::Straps::_default_inc cache is broken |
The cache code in Test::Harness::Straps::_default_inc is broken. The
do block does not return @inc, but the number of haracters chomped from
@inc:
$cache{$perl} ||= [do {
local $ENV{PERL5LIB};
my @inc =`$perl -le "print join qq[\\n], \@INC"`;
chomp @inc;
}];
It should look like this:
$cache{$perl} ||= [do {
local $ENV{PERL5LIB};
my @inc =`$perl -le "print join qq[\\n], \@INC"`;
chomp @inc;
return @inc;
}];