in reply to Re^3: map vs for\foreach.
in thread map vs for\foreach.

Thx. For this info. It new for me.

Replies are listed 'Best First'.
Re^5: map vs for\foreach.
by LanX (Saint) on Mar 11, 2015 at 14:56 UTC
    > It new for me.

    Not sure if I was able to help you, this area of implementation details is a moving target.

    And the margins you benchmarked do not really justify any micro-optimisations here, because different Perl versions can behave differently.

    Personally I'd rather prefer for to alter an array via alias, such side-effects in map might confuse other readers (a map in void context used to be a matter of warning)

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)

    PS: Je suis Charlie!