Subject: | Tests should use $^X |
The test suite still may fail on some perl installations:
...
# Failed test 'Caught invalid environmental variable'
# at t/devel-scope.t line 21.
# Got: Can't locate Scope/Upper.pm in @INC (you may need to install the Scope::Upper module) (@INC contains: /usr/home/eserte/.cpan/build/2018020609/Devel-Scope-0.05-2/blib/lib /usr/home/eserte/.cpan/build/2018020609/Devel-Scope-0.05-2/blib/arch /usr/local/lib/perl5/site_perl/mach/5.20 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.20/mach /usr/local/lib/perl5/5.20 /usr/local/lib/perl5/site_perl/5.20 /usr/local/lib/perl5/site_perl/5.20/mach .) at /usr/home/eserte/.cpan/build/2018020609/Devel-Scope-0.05-2/blib/lib/Devel/Scope.pm line 8.
# BEGIN failed--compilation aborted at /usr/home/eserte/.cpan/build/2018020609/Devel-Scope-0.05-2/blib/lib/Devel/Scope.pm line 8.
# Compilation failed in require at /usr/home/eserte/.cpan/build/2018020609/Devel-Scope-0.05-2/t/devel-scope.fixture line 4.
# BEGIN failed--compilation aborted at /usr/home/eserte/.cpan/build/2018020609/Devel-Scope-0.05-2/t/devel-scope.fixture line 4.
...
The @INC path suggest that the system perl is used here, not the perl used for the current build (which does not necessarily be in the user's $PATH). Best is to use $^X instead of "perl" for calling perl scripts in test suites.