|
|
| There's more than one way to do things | |
| PerlMonks |
Re^3: Avoiding memory loss...by LanX (Monsignor) |
| on Dec 27, 2012 at 23:39 UTC ( #1010597=note: print w/ replies, xml ) | Need Help?? |
|
> No, perl doesn't use a garbage collector. most probably a problem of fuzzy terminology¹, perldoc talks about "garbage collection": Perl uses a fast and simple, reference-based garbage collection system see perlobj#Two-Phased-Garbage-Collection But as opposed to mark-and-sweep Perl's runtime approach is very simple an efficient. OTOH it can't handle circular references.
Cheers Rolf UPDATES: ¹) from perlglossary
²) more complicated: "While Python uses the traditional reference counting implementation, it also offers a cycle detector that works to detect reference cycles."
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||