in reply to Re^3: elements not reversing inside a map
in thread elements not reversing inside a map

Ok, but why? Shouldn't the short-circuit operator take effect then?

From perlop:

Scalar or list context propagates down to the right operand if it is evaluated.
But that's "if" it is evaluated... which it doesn't seem like it would be.
  • Comment on Re^4: elements not reversing inside a map

Replies are listed 'Best First'.
Re^5: elements not reversing inside a map
by chromatic (Archbishop) on May 05, 2005 at 21:48 UTC

    The act of evaluating the high-precedence or operator puts the reverse in scalar context.