in reply to "one tainted value taints the whole expression"

The documentation cannot be wrong, or your second case would flag as tainted as well.
  • Comment on Re: "one tainted value taints the whole expression"

Replies are listed 'Best First'.
Re^2: "one tainted value taints the whole expression"
by duelafn (Parson) on Oct 14, 2008 at 22:29 UTC

    It is correct in its statements, but at best incomplete since there is more involved and one can not fully trust the ternary operator (or even statement modifiers $blop = "the $foo" if $t).

    Good Day,
        Dean

      Unless I am missing something, the logic of the text you quoted is correct. It looks like a perl bug (not a doc bug) to me.