Try calling Data::Dumper on each of your global variables inside your loop, and direct the output to a text file. Then look at the results when it crashes and see which variable is unexpectedly large. Then concentrate on the relevent bits of code. There are better ways to do it, but this one's quick and easy.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: Memory leak!
by roboticus
in thread Memory leak!
by joeymac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |