I am not sure (but could be wrong) that your assertion about LIFO order is correct. If I remember correctly, all that is guaranteed is that an object may (note that I didn't say will) only be destroyed when there is no longer a reference pointing to it.
This is why objects with circular references need to use special tricks (like weaken or similar) to free memory.
--MidLifeXis
In reply to Re: Controlling the order of object destruction
by MidLifeXis
in thread Controlling the order of object destruction
by metaperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |