Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
XP is just a number
 
PerlMonks  

Re^3: Foreach Loops

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


in reply to Re^2: Foreach Loops
in thread Foreach Loops

That's why I said "Not so clear":

for(1..@arr){ print $arr[--$_], $_, $/ }



Comment on Re^3: Foreach Loops
Download Code
Re^4: Foreach Loops
by samtregar (Abbot) on Mar 15, 2005 at 20:44 UTC
    Actually you said "not so clean" not "not so clear" and your code didn't start from 1.

    -sam

      My mistake - forgotten s/.$/n/ after "not so clear"


Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2014-04-20 04:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls