5 Equivalent to F<taint/util.t> but uses perl regexes to untaint.
19 ? (skip_all => "Taint::Util required for taint tests")
23 use re::engine::Plugin (
27 ok(tainted($str) => 'matched string tainted');
30 my $two = $str; $two =~ /(.*)/; $two = $1;
39 return $one if $p == 1;
40 return $two if $p == 2;
52 if ($str =~ /pattern/) {
53 cmp_ok $1, 'eq', $str;
54 ok(tainted($1) => '$1 is tainted');
56 cmp_ok $2, 'eq', $str;
57 ok(!tainted($2) => '$2 is untainted');