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


in reply to Re^3: Perl Program - Out of memory?
in thread Perl Program - Out of memory?

Tried setting the delay to 0 and no dice. It just get's to the "Out of Memory!" error much faster (which will help in tracking down the issue). Is there a way to track down memory leaks in perl?
I love it when a program comes together - jdhannibal

Replies are listed 'Best First'.
Re^5: Perl Program - Out of memory?
by BrowserUk (Patriarch) on Nov 16, 2013 at 15:12 UTC
    Is there a way to track down memory leaks in perl?

    Your code isn't leaking memory. It is just using more than it has available.

    At least, that is what I strongly suspect, but given that you've stopped answering questions, there's no way to derive a definitive conclusion.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    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.
Re^5: Perl Program - Out of memory?
by taint (Chaplain) on Nov 15, 2013 at 21:13 UTC
    Hmm... "Out of memory faster". Why not try the other direction; bump up the sleep time, a bit, and see what that does.

    --Chris

    #!/usr/bin/perl -Tw
    use Perl::Always or die;
    my $perl_version = (5.12.5);
    print $perl_version;