in reply to memory leak

In general you need not worry about memory management in Perl. However with recursion, you're likely referring to issues discussed here: The Current Sub in Perl 5.16.

Also, you may find some useful information here: Improve Your Extracted Traversal.

• As the anonymous monk below mentions, these articles are about anonymous subs which may be where you heard that recursion leaks in Perl ;o)

Replies are listed 'Best First'.
Re^2: memory leak
by Anonymous Monk on Jul 27, 2013 at 06:53 UTC

    However with recursion, you're likely referring to issues discussed here:

    The OP doesn't use anonymous subs, so the article doesn't apply