The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!./perl -T

BEGIN {
	chdir 't' if -d 't';
	@INC = '../lib';
	require Config; import Config;
	if ($Config{extensions} !~ /\bList\/Util\b/) {
	    print "1..0 # Skip: List::Util was not built\n";
	    exit 0;
	}
}

use lib qw(blib/lib blib/arch);
use Scalar::Util qw(tainted);
use Config;

print "1..5\n";

print "not " if tainted(1);
print "ok 1\n";

my $var = 2;

print "not " if tainted($var);
print "ok 2\n";

my $key = (keys %ENV)[0];

$var = $ENV{$key};

print "not " unless tainted($var);
print "ok 3\n";

print "not " unless tainted($ENV{$key});
print "ok 4\n";

print "not " if @ARGV and not tainted($ARGV[0]);
print "ok 5\n";