in reply to Re^3: Trying to DESTROY() an object
in thread SOLVED: Trying to DESTROY() a (closure-wrapped) object
Thanks kennethk.
I also found that instead of doing the object redirect, I can weaken() inside of the sub re-definition on $self directly:
*$sub = sub { weaken $self if ! isweak $self; ... }
I've been doing some testing with both scenarios to see if without the $closure_self, weird issues crop up.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Trying to DESTROY() an object
by kennethk (Abbot) on Dec 08, 2015 at 20:31 UTC | |
by stevieb (Canon) on Dec 08, 2015 at 20:57 UTC |