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

my $fp = !!! $tp;

Replies are listed 'Best First'.
Re^3: How to Do Multiple OR in For Loops
by ikegami (Patriarch) on Apr 13, 2011 at 02:01 UTC
    !!!$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]
      !!!$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.