Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: When would you choose foreach instead of map?

by rjray (Chaplain)
on May 22, 2004 at 00:21 UTC ( #355505=note: print w/replies, xml ) Need Help??


in reply to Re: When would you choose foreach instead of map?
in thread When would you choose foreach instead of map?

There are those perl programmers who try to do as much with as little as possible and then are those of us who like the code to be as readable and mutable as possible.

I repeat an earlier statement of mine, that not understanding that part of the language does not make it less useful, effective, or in this case, readable. I use map when it is the right choice, and my code is both readable and debuggable.

--rjray

  • Comment on Re: Re: When would you choose foreach instead of map?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2022-05-29 06:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (101 votes). Check out past polls.

    Notices?