pileofrogs has asked for the wisdom of the Perl Monks concerning the following question:
Greetings Monks!
I've got a list full of objects that, among other things, can see if they're relevant any more. I'd like my object to undefine itself when it detects that it's irrelevant.
$self = undef;
... doesn't work. It just sets that particular "$self" variable in that particular scope to undef.
I understand that this still leaves an item in my list pointing to an undefined value. That's fine with me.
Thanks!
-Pileofrogs
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Object Suicide
by Joost (Canon) on Jun 14, 2007 at 19:30 UTC | |
Re: Object Suicide
by philcrow (Priest) on Jun 14, 2007 at 20:07 UTC | |
Re: Object Suicide
by kyle (Abbot) on Jun 14, 2007 at 19:57 UTC | |
Re: Object Suicide
by jbert (Priest) on Jun 15, 2007 at 07:07 UTC | |
Re: Object Suicide
by ysth (Canon) on Jun 14, 2007 at 22:41 UTC | |
Re: Object Suicide
by ChemBoy (Priest) on Jun 15, 2007 at 20:00 UTC | |
Re: Object Suicide
by sfink (Deacon) on Jun 16, 2007 at 20:42 UTC |