|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: General style advice requestedby ikegami (Patriarch) |
| on Oct 22, 2010 at 02:45 UTC ( [id://866707]=note: print w/replies, xml ) | Need Help?? |
|
$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
or the more popular
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||