Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Foreach Loops

by sh1tn (Priest)
on Mar 15, 2005 at 19:26 UTC ( #439727=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for(0..@arr){ $arr[$_] }
    
  2. or download this
    for(1..@arr){ print $arr[--$_], $_,  $/ } # diff ?
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://439727]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2016-12-10 01:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (159 votes). Check out past polls.