Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: General style advice requested

by ikegami (Patriarch)
on Oct 22, 2010 at 02:45 UTC ( [id://866707]=note: print w/replies, xml ) Need Help??


in reply to General style advice requested

$cycle_length being declared globally is not acceptable. I would declare $first and $second in the loop, but they're acceptable where they are.

The other issue it's very hard to spot the loop in your sub. May I recommend

for (;;) { # I read this as "for ever" ... }

or the more popular

while (1) { ... }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2026-03-16 23:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.