in reply to Re^2: Proper handling of shebang line while performing local testing?
in thread Proper handling of shebang line while performing local testing?

Maybe then you need to invoke your tests in a different way. I usually run single tests as

perl -Mlib -w t/01-api.t

... and the whole test suite with

make test

or, if I want to run the author tests as well, with:

make prove -bl xt/ t/

Directly starting a test will get things confused because the kernel will invoke the Perl that is hardcoded in the first line instead of using the Perl that you (may) want.