On Thursday 19 February 2009, David Cantrell wrote: > > > Check out the tests for Data::Compare, and how that turns PERL5LIB into > > > a load of -Ifoo -Ibar -Ibaz for taint tests. > > > > Sure, but as I mentioned, AFAIU that would only "fix" the test suite, > > while the script (which has -T as well) wouldn't work after "make > > install" if some modules are available only in PERL5LIB, not the default > > @INC. > > So use the same technique in the script.
The perl5lib module in CPAN appears to do exactly what I want, and it looks like there's no need to touch the test code after modifying the script to use perl5lib (as expected). Thanks everyone!