From: Rafael Garcia-Suarez Date: Thu, 3 Jul 2003 14:58:18 +0000 (+0200) Subject: Re: randomly untainting? X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7bde033ebff0a0b90536713c20543166fab1b660;p=p5sagit%2Fp5-mst-13.2.git Re: randomly untainting? Message-Id: <20030703145818.5bdd2873.rgarciasuarez@free.fr> (plus extra debug printing) p4raw-id: //depot/perl@19957 --- diff --git a/ext/List/Util/t/tainted.t b/ext/List/Util/t/tainted.t index a330b1f..05611a8 100644 --- a/ext/List/Util/t/tainted.t +++ b/ext/List/Util/t/tainted.t @@ -27,12 +27,12 @@ my $var = 2; print "not " if tainted($var); print "ok 2\n"; -my $key = (keys %ENV)[0]; +my $key = (grep $_ ne 'PERL_CORE', keys %ENV)[0]; $var = $ENV{$key}; print "not " unless tainted($var); -print "ok 3\n"; +print "ok 3 - '$var'\n"; print "not " unless tainted($ENV{$key}); -print "ok 4\n"; +print "ok 4 - key '$key', val '$ENV{$key}'\n";