in reply to Re^2: Help Diagnosing Memory Leak
in thread Help Diagnosing Memory Leak

Hm. I cut & pasted your code verbatim, generated a 10 x 10MB datasets and ran it.

The result on my system is successful completion using 3.2MB.

So, I guess we need to trade OSs and version:

C:\test\890799>perl -MList::Util -E" say, for $^O, $], $List::Util::VE +RSION" MSWin32 5.010001 1.23

My guess is that you are using a 5.8.x version of Perl and a very old version of List::Util that had leaks associated with closures until quite late into the 5.8x line?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^4: Help Diagnosing Memory Leak
by Limbic~Region (Chancellor) on Mar 02, 2011 at 17:41 UTC
    BrowserUk,
    I provided OS and version of perl in the root thread but my List::Util is 1.13 so roughly September of 2003. I am glad the problem doesn't appear to be my code nor with the calling code as postulated. Thanks.

    Cheers - L~R