Hi,

I have a complex data structure using hash of hash of hash that I need to hold 
one unit of data that I need to process.  After finishing processing this unit, 
I need to go to the 2nd unit; each unit will be approx. 10Meg of data.

What is the "quick" and "efficient" way for me to release the memory of the 
previous unit so that I can go and reuse it again?

I tried a couple of following methods and neither seem to work....  Please let 
me know if I am doing something wrong or should I take another approach...

1. Just set the hash to "empty"
my %datahash;
while (moredetail) {
        $datahash{$level1}{$level2}{$level3}{$level4} = $something;
}
&processdata(\%datahash);

%datahash = ();


2. Putting the function in a separate file and invoking it from the main 
program.

Thanks...

--Chung





--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to