in reply to Re^6: use re 'taint' with s/// operator
in thread use re 'taint' with s/// operator

I look forward to the publication of the JavaFan authorised revision :)

  • Comment on Re^7: use re 'taint' with s/// operator

Replies are listed 'Best First'.
Re^8: use re 'taint' with s/// operator
by JavaFan (Canon) on Nov 19, 2010 at 22:03 UTC
    $ 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
    HTH, HAND, BrowserUk.

      What are you saying?

      That because Scalar::Util::tainted returns 0 rather than "Untainted", perlsec's use of that word is invalid?