in reply to
Release memory in hash of hashes
If there are no other pointers to the values of
%hash
, then perl frees them. Depending on the operation system it might not hand them back to the OS though, it just reuses it for other data structures if needed.
Comment on
Re: Release memory in hash of hashes
Download
Code
Replies are listed 'Best First'.
Re^2: Release memory in hash of hashes
by
vit
(Friar)
on Aug 17, 2009 at 15:22 UTC
I don't understand exactly what you mean.
Let's say I have
%hash{A}{B}{C}
[download]
I thought there should be some procedure which goes starting from %hash and releases all As, Bs and Cs
[reply]
[d/l]
Re^3: Release memory in hash of hashes
by
moritz
(Cardinal)
on Aug 17, 2009 at 15:24 UTC
Perl does that for you, if you empty
%hash
all other items are freed automagically.
[reply]
[d/l]
In Section
Seekers of Perl Wisdom