There's more than one way to do things | |
PerlMonks |
Re^2: Using map to create a hash/bag from an arrayby shotgunefx (Parson) |
on Dec 18, 2005 at 08:34 UTC ( [id://517576]=note: print w/replies, xml ) | Need Help?? |
Didn't they optimize map at some point so it doesn't actually creat a new array when in a null context?
That would explain why map++ is so much faster than map.
In Section
Seekers of Perl Wisdom
|
|