in reply to does splice'ing an array of hashes free memory?
People are answering about the size of the array, but you seem to be asking the hashes.
Or will the hashrefs be orphaned?
A variable that becomes orphaned (i.e. whose refcount becomes zero) is freed automatically.
Splicing one of the hash references from the array frees the reference, which reduce the refcount on the hash, which frees the hash.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: does splice'ing an array of hashes free memory?
by lagle (Novice) on Nov 01, 2010 at 16:42 UTC |