in reply to Re: Memory leak!
in thread Memory leak!

@rmtDirList isn't the only global I see you modify in place without clearing. Try also my other suggestion of passing in global variables, copying their values into lexicals, and leaving the globals unmodified. That's far easier in the long run than pairing up pushes and pops every place you modify a global.


Improve your skills with Modern Perl: the free book.