in reply to Re^2: map vs for\foreach.
in thread map vs for\foreach.
So why is map { ++$_ } @foo; wrong?
If for no other reasons: it’s a little harder to follow and four characters more typing than $_++ for @foo. Superstition makes me post-increment; I think it’s not slower anymore but was back in the dinosaur age. (Update: map $_++, @foo is a little shorter too…)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: map vs for\foreach.
by ikegami (Patriarch) on Mar 13, 2015 at 17:39 UTC | |
by karlgoethebier (Abbot) on Mar 13, 2015 at 18:31 UTC | |
by LanX (Saint) on Mar 13, 2015 at 18:38 UTC |