in reply to Re^5: sub calls and memory use
in thread sub calls and memory use

In Perl you are generally better off translating tail calls to loops.

I replaced that recursive sub with a while loop and yeah, makes more sense, less code, and no memory bomb. ThanX

Concerning your memory growth, we'd need to know how you declared the "global var".

Sorry I was mistaken about that :-/