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

Re: for, foreach and $_...

by bm (Hermit)
on Aug 18, 2003 at 14:09 UTC ( #284579=note: print w/ replies, xml ) Need Help??


in reply to for, foreach and $_...

Yes, you're right. Your last solution is probably preferable. You can also do things like  print for @array; which again uses $_.

Isn't that nice? Sometimes it is obvious the Perl was conceived by a linguist. :-)
--
bm


Comment on Re: for, foreach and $_...
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2014-07-13 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (247 votes), past polls