|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: Timing of garbage collectionby blue_cowdawg (Prior) |
| on Jan 18, 2013 at 18:15 UTC ( #1014102=note: print w/ replies, xml ) | Need Help?? |
|
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. Peter L. Berghold -- Unix Professional Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||