in reply to Re^7: use re 'taint' with s/// operator
in thread use re 'taint' with s/// operator
HTH, HAND, BrowserUk.$ perl -TMScalar::Util=tainted -wE '$x = $0; say tainted $x; ($x) = ke +ys %{{$x => 1}}; say tainted $x' 1 0 $ perl -TMScalar::Util=tainted -wE '$x = $0; say tainted $x; $x = join + "", map {chr ord substr $x, $_, 1} 0 .. length($x) - 1; say tainted +$x' 1 0 $ perl -TMScalar::Util=tainted -wE '$x = $0; say tainted $x; $x = lc $ +x; say tainted $x' # May change the case of $x 1 0 $ perl -TMScalar::Util=tainted -wE '$x = $0; say tainted $x; $x = eval + qq["${\quotemeta $x}"] or die; say tainted $x' 1 0
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: use re 'taint' with s/// operator
by BrowserUk (Patriarch) on Nov 19, 2010 at 22:16 UTC |