in reply to Re: Re: Re: Re: Re: Using s///e and it just doesn't feel right
in thread Using s///e and it just doesn't feel right
but that uses the return from map, although it's hidden.
I don't see why using map in a void context is so wrong. Sometimes it expresses something better, particularly if the order of operation doesn't matter:
map {transform($_)} @elements; # transform() does something inline
A massive flamewar beneath your chosen depth has not been shown here |
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: map vs foreach
by jsprat (Curate) on Jun 20, 2003 at 17:45 UTC | |
by dash2 (Hermit) on Jun 20, 2003 at 17:59 UTC | |
Re: map vs foreach
by antirice (Priest) on Jun 20, 2003 at 17:26 UTC |
In Section
Seekers of Perl Wisdom