|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re^5: filtering an arrayby philiprbrenan (Monk) |
| on Sep 01, 2012 at 23:03 UTC ( #991211=note: print w/ replies, xml ) | Need Help?? |
|
Likewise, the for is unnecessary in this code too:
It should just be:
because map iterates over the array you give it. Even better, you could write:
here we are making the for implicit in map explicit.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||