in reply to Re: help with memory leak
in thread help with memory leak

Changing \@zeros to join "|", @zeros fixes the leak on the line containing my @zeros = poly_roots(@derivative); but not the one with the hash definition. I have no idea why. Changing that also affects things later in the program, but right now I guess my priority is to fix this leak. & I added a line to the original message to explain what $rep is

Replies are listed 'Best First'.
Re^3: help with memory leak
by bioinformatics (Friar) on Apr 17, 2013 at 04:31 UTC
    The "$a, $b, $c" portion of the hash uses scalars being passed in to the derivative function in @quartic. If you copy the loop counters like my $a_copy = $a and use those in @quartic, you may be able to bypass the scalar leak. I would say the module has some issues, but it looks like you can bypass them.

    Bioinformatics