http://www.perlmonks.org?node_id=270738


in reply to Perl Not Releasing Memory

Hi!

It's not $Divider and $Number which eat up your memory (they're always the same variabile). The problem lies in the fact that your subroutine calls itself without a condition for doing that, causing and endless recursion.</p.

Michele.