Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Index in For loop

by c-era (Curate)
on Jun 27, 2001 at 17:53 UTC ( [id://91914]=note: print w/replies, xml ) Need Help??


in reply to Index in For loop

How about this:
for my $i (0 .. $#list){ print "index = $i"; print "value = $list[$i]"; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (1)
As of 2024-04-25 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found