The scope and desired lifetime of your different objects and variables isn't completely clear to me, but it looks to me like you could just add:
after you set $glob{user}.use Scalar::Util 'weaken'; weaken $glob{user};
In reply to Re: destroying object
by Anomynous Monk
in thread destroying object
by slayven
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |