Because you're saving a reference to the object, the object will never get DESTROYed, which may not be what you want.
You may want to have a look at Scalar::Util's weaken() function, which allows you to save references without interfering with the lifetime of objects.
Liz
In reply to Re: Re: looping over class instances
by liz
in thread looping over class instances
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |