Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Index in For loop

by jeroenes (Priest)
on Jun 27, 2001 at 18:31 UTC ( #91930=note: print w/replies, xml ) Need Help??


in reply to Index in For loop

Besides the other comments I'd like to add:
Try to rewrite the code so that you don't need the index anymore.

In many cases, the index isn't needed at all. By leaving out the index, you avoid (1) unneccesary statements (2) complicated so error-prone code. This is not my own idea, I must say, tilly showed me that with my own code. Nowadays I scratch my head a couple of times before using an index-loop.

Hope this helps,

Jeroen

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2016-09-30 02:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (562 votes). Check out past polls.