I am not sure (but could be wrong)yes, I'm not sure either. I appreciate your input. I definitely want a reference in the docs if possible.
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.yes, that's why I used braces in the second part of the code - to control the order of reference loss.
In reply to Re^2: Controlling the order of object destruction
by metaperl
in thread Controlling the order of object destruction
by metaperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |