[Perl] delete hash key

Shlomo Yona shlomo at cs.haifa.ac.il
Sun Oct 13 03:48:56 PDT 2002


On Sun, 13 Oct 2002, Pinkhas Nisanov wrote:

> Hi,
> 
> Last pm meeting Shlomo said that "delete" function on
> some hash key will not free memory allocated for this
> key's value ( Shlomo said he is not sure for it ) and
> garbage collector will free memory only when hole hash
> will undef.
> Does anyone know how it really works?
> 


http://www.perl.com/pub/a/2002/10/01/hashes.html


-- 
Shlomo Yona
shlomo at cs.haifa.ac.il
http://cs.haifa.ac.il/~shlomo/




More information about the Perl mailing list