Keep It Simple, Stupid | |
PerlMonks |
Re: undef vs. $foo = 0by Mur (Pilgrim) |
on May 06, 2002 at 14:29 UTC ( [id://164337]=note: print w/replies, xml ) | Need Help?? |
undef $bar may have some useful side-effects, if $bar is an object.
will invoke "Foo::DESTROY", if it is defined. will also invoke DESTROY, but not if '0' is a valid assignment in the "Foo" class (long shot, I know).
In Section
Seekers of Perl Wisdom
|
|