Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Perlplexation - foreach shoulda Known

by JavaFan (Canon)
on Apr 16, 2012 at 11:36 UTC ( #965292=note: print w/ replies, xml ) Need Help??


in reply to Re: Perlplexation - foreach shoulda Known
in thread Perlplexation - foreach shoulda Known

This is generally considered to be bad style, and -- who knows? -- you may even wind up confusing yourself this way. If you want to modify the contents of a list, use foreach.
You know, I can understand people who say "I find modifying list elements using an alias confusing", and I can understand people who say "I'm fine using all the features Perl gives me, including list aliasing". I don't know what to think of people who say "I'm fine with modifying list elements in a block, but only if the keyword is foreach, if the keyword is map, it confuses me". Those aren't the people I would want to hire.


Comment on Re^2: Perlplexation - foreach shoulda Known
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (13)
As of 2015-07-07 12:15 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 (88 votes), past polls