Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by Anonymous Monk
on Dec 16, 2005 at 01:14 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 14:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found