The stupid question is the question not asked | |
PerlMonks |
Re^2: Using map to create a hash/bag from an arrayby mrborisguy (Hermit) |
on Dec 18, 2005 at 04:22 UTC ( [id://517556]=note: print w/replies, xml ) | Need Help?? |
Why not use for in this example, since you're not really transforming @items into a new array (common use of map), but rather just performing an action for each value in @items (common use of for).
-Bryan
In Section
Seekers of Perl Wisdom
|
|