Is this the problem?
push (@rmtDirList, @currentDirList);I see nothing which removes entries from @rmtDirList.
You could work around this by passing variables to Prog() from within your infinite loop and treating them as lexicals within the function. You're far better off doing that.
Improve your skills with Modern Perl: the free book.
In reply to Re: Memory leak!
by chromatic
in thread Memory leak!
by joeymac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |