Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Out of Memory Error -- Possible Leak?

by Anonymous Monk
on Dec 16, 2005 at 01:14 UTC ( #517117=note: print w/replies, xml ) Need Help??


in reply to Re: Out of Memory Error -- Possible Leak?
in thread Out of Memory Error -- Possible Leak?

YES YES YES!!!

No matter how sure I was about the data-structure being properly created, I decided to out code like inside my loop:

if ( exists( $data{$array[$i]}{$array[$j]} ) ) { next(); } else { print OUT join("\t", $i, $j), "\n"; }

and... wouldn't ya know it, there *were* elements being autovivified. I've fixed that problem, and now the code appears to be running correctly (appears = its been running for a day without crashing yet -- it still has another couple of days to run, though).

Many thanks -- this has led me to one key problem in the code. Any monks who haven't done so yet, please ++ the parent.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://517117]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2022-12-09 23:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?