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.

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}
    I thought there should be some procedure which goes starting from %hash and releases all As, Bs and Cs
      Perl does that for you, if you empty %hash all other items are freed automagically.