1 # This is a replacement for the old BEGIN preamble which heads (or
2 # should head) up every core test program to prepare it for running.
10 # Its primary purpose is to clear @INC so core tests don't pick up
11 # modules from an installed Perl.
13 # t/TEST will use -MTestInit. You may "use TestInit" in the test
14 # programs but it is not required.
16 # P.S. This documentation is not in POD format in order to avoid
17 # problems when there are fundamental bugs in perl.
26 # Don't interfere with the taintedness of %ENV, this could perturbate tests.
27 # This feels like a better solution than the original, from
28 # http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2003-07/msg00154.html
29 $ENV{PERL_CORE} = $^X;
31 $0 =~ s/\.dp$//; # for the test.deparse make target