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

Because it puts it into scalar context?

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on Re^3: elements not reversing inside a map

Replies are listed 'Best First'.
Re^4: elements not reversing inside a map
by Transient (Hermit) on May 05, 2005 at 21:32 UTC
    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.

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