in reply to Instructive bug

I brought down a server once by accidently writing a function that had an unintended recursive call in a loop.

Cue 10000's of DBI connections and bang.
I make sure I don't give my variables the same names as subs now;)

I'd say it's infinite cos your loops test conditions are never satisified :)

my guess is you got bad things going on with negative numbers