Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Re: Re: Re: Re: Think for yourself.

by gwadej (Chaplain)
on Oct 30, 2003 at 05:36 UTC ( #303205=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Re: Think for yourself.
in thread is the use of map in a void context deprecated ?

Oops. I apparently did not make myself clear.

I rarely use map or grep in a void context. When I said that I see map and grep and operations on a list. I mean it in much the same way that + is an operation on a number.

When I need to transform a list into a new list, I tend to think of map. To me, the foreach approach focuses more on the individual elements of a list than on the list as a whole.

That being said, I will break my own preferred approach any time it makes the code clearer.<grin/>

G. Wade


Comment on Re: Re: Re: Re: Re: Think for yourself.
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://303205]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2015-07-29 11:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls