4 unless(grep /blib/, @INC) {
13 if ($ENV{PERL_CORE} and $Config{'extensions'} !~ /\bIO\b/ && $^O ne 'VMS') {
19 END { unlink "./__taint__$$" }
23 $x = new IO::File "> ./__taint__$$" || die("Cannot open ./__taint__$$\n");
27 $x = new IO::File "< ./__taint__$$" || die("Cannot open ./__taint__$$\n");
29 eval { kill 0 * $unsafe };
30 print "not " if ((($^O ne 'MSWin32') && ($^O ne 'NetWare')) and ($@ !~ /^Insecure/o));
34 # We could have just done a seek on $x, but technically we haven't tested
36 $x = new IO::File "< ./__taint__$$" || die("Cannot open ./__taint__$$\n");
39 print "ok 2\n"; # Calling the method worked
41 eval { kill 0 * $unsafe };
42 print "not " if ($@ =~ /^Insecure/o);
43 print "ok 3\n"; # No Insecure message from using the data