I heard Larry Wall talk about GC in Perl about eleven years ago and I'll paraphrase him here: "Something lives in memory in Perl until nobody cares."
From what I remember there is a reference count associated with any variable (or object) and when that reference counter drops to zero the object is freed from memory.
In reply to Re: Timing of garbage collection
by blue_cowdawg
in thread Timing of garbage collection
by dd-b
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |