Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2015-08-05 03:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (76 votes), past polls