The stupid question is the question not asked | |
PerlMonks |
Re: Building an object treeby unixwzrd (Beadle) |
on Feb 26, 2001 at 02:10 UTC ( [id://60786]=note: print w/replies, xml ) | Need Help?? |
You could get into trouble with memory leaks due to the garbage
collection in Perl. It counts references to the variable and
removes it when the count becomes zero.
For instance, you might have a child node that was the parent for two other nodes. If were not careful when deleting the child, the childres for which it is the parent might still be allocated memory, and they would be inaccessible. I highly recommend Damian Conway's book "Object Oriented Perl". it goes into this subject quite well. Mike - mps@discomsys.com
"The two most common elements in the universe are hydrogen... and stupidity."
In Section
Seekers of Perl Wisdom
|
|