No such thing as a small change | |
PerlMonks |
Re^4: map vs for\foreach.by ikegami (Patriarch) |
on Mar 13, 2015 at 17:39 UTC ( [id://1119980]=note: print w/replies, xml ) | Need Help?? |
Post-increment is necessarily slower since it requires making a copy of the scalar that pre-increment doesn't. However, Perl replaces post-increment operators in void context with pre-increment operators.
In Section
Seekers of Perl Wisdom
|
|