<?xml version="1.0" encoding="windows-1252"?>
<node id="1010583" title="Avoiding memory loss..." created="2012-12-27 16:36:28" updated="2012-12-27 16:36:28">
<type id="115">
perlquestion</type>
<author id="1010579">
J.Perl.Man</author>
<data>
<field name="doctext">
&lt;p&gt;My question has to do with potential memory leaks, and how to properly clean up what I'm doing...  I'm creating an array off of a hash as follows:&lt;/p&gt;
&lt;code&gt;
if (! exists $cTable{$cID}{raw}) {
    $cTable{$cID}{raw}=[];
}
push @{$Table{$cID}{raw}}, $currentVal;
&lt;/code&gt;
&lt;p&gt;and, periodically wanting to delete the hash.&lt;/p&gt;
&lt;code&gt;
delete $cTable{$cID};
&lt;/code&gt;
&lt;p&gt;My question is, do I first need to do something to remove the array or is that cleaned up automatically for me?&lt;/p&gt;</field>
</data>
</node>
