Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: "for" surprise

by melora (Scribe)
on Nov 22, 2003 at 18:17 UTC ( [id://309179]=note: print w/replies, xml ) Need Help??


in reply to "for" surprise

I've got to agree with Corion, this is questionable style. I would suggest setting a different variable to mark where (or why or how) the loop was exited, if that's needed after the loop exits. Besides, to be fair to the iterator variable, its only job was to count through the loop, not to provide information after the loop is over.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-24 08:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found