# [perl #33173] shellwords.pl and tainting
BEGIN {
- chdir 't' if -d 't';
- @INC = '../lib';
- require Config;
- if ($Config::Config{extensions} !~ /\bList\/Util\b/) {
- print "1..0 # Skip: Scalar::Util was not built\n";
- exit 0;
+ if ( $ENV{PERL_CORE} ) {
+ chdir 't' if -d 't';
+ @INC = '../lib';
+ require Config;
+ no warnings 'once';
+ if ($Config::Config{extensions} !~ /\bList\/Util\b/) {
+ print "1..0 # Skip: Scalar::Util was not built\n";
+ exit 0;
+ }
}
}