in reply to Re^2: How to Do Multiple OR in For Loops
in thread How to Do Multiple OR in For Loops

!!!$tp is the same as just !$tp, and it's not equivalent to $tp ? 0 : 1.
$ perl -E'$tp=1; say "[", !$tp, "]";' [] $ perl -E'$tp=1; say "[", $tp ? 0 : 1, "]";' [0]

Replies are listed 'Best First'.
Re^4: How to Do Multiple OR in For Loops
by Anonymous Monk on Apr 13, 2011 at 02:05 UTC
    !!!$tp is the same as just !$tp,

    Except that it isn't, and you know this

    and it's not equivalent to $tp ? 0 : 1

    So?

      Except that it isn't, and you know this

      Are you 5? You are wrong. I don't know because you were too busy being a jerk to explain.

      It doesn't help against strings (either kind), integers (either kind), floats, magic or overloading. I can't think of any other data types.

      So?

      The person to which you replied obviously went to some trouble to stay equivalent, so I can only assume you were ignorant of the difference.