Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://284579]
help
Chatterbox?
marioroy MCE 1.830 is completed. I will release it after completing MCE::Shared.
marioroy concurrent Tie::File among many workers is possible via MCE::Shared.
marioroy Ditto for DB_File, BerkeleyDB, etc. ;-)

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2017-08-18 07:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (296 votes). Check out past polls.

    Notices?