Subject: | PERL5LIB contains too many paths |
I believe this is different than bug 44601 even though they both have to
do with code that generates PERL5LIB.
By design, when PERL5LIB is defined, it gets *prepended* to the standard
lib. However, Test::Harness::Straps duplicates the current standard lib
into PERL5LIB. This is a problem when a test calls a system command
that calls a *different* version of Perl. That system command process
ends up with two versions of Perl standard libs in @INC, which is not
allowed and errors.
But I also admit that I don't fully understand the purpose of
Test::Harness::Straps::_INC2PERL5LIB.