|Think about Loose Coupling|
Turning foreach into map?by ghenry (Vicar)
|on Apr 04, 2005 at 20:12 UTC||Need Help??|
ghenry has asked for the wisdom of the Perl Monks concerning the following question:
I have a simple subroutine. I would like to try and swap out the foreach loop and use map instead:
Is this right way to do it?
I have never used map before and I have read the map function page on http://perldoc.perl.org/functions/map.html, but I don't seem to quite understand.
Walking the road to enlightenment... I found a penguin and a camel on the way.....
Fancy a email@example.com? Just ask!!!