in reply to Fixing leaks with a flush memory call in perl?
There is some info in Garbage-collecting with closures that you may find helpful if you're running perl earlier than V 5.8.0.
HTH Daeve