in reply to When would you choose foreach instead of map?
map is fairly hideous and foreach looks much nicer. foreach also adds to the linguistic feel of Perl ( the smooth flow ) because it is intuitively understandable and shows off the benefits of arrays. Of course map has its own uses but I think that for simple cases foreach clutters the visual space much less...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: When would you choose foreach instead of map?
by rjray (Chaplain) on May 21, 2004 at 00:05 UTC | |
by dragonchild (Archbishop) on May 21, 2004 at 13:11 UTC | |
by rjray (Chaplain) on May 22, 2004 at 00:08 UTC |
In Section
Seekers of Perl Wisdom