in reply to
undef vs. $foo = 0
undef $bar may have some useful side-effects, if $bar is an object.
$bar = Foo->new(); ... undef $bar;
[download]
will invoke "Foo::DESTROY", if it is defined.
$bar = 0;
[download]
will also invoke DESTROY, but not if '0' is a valid assignment in the "Foo" class (long shot, I know).
Comment on
Re: undef vs. $foo = 0
Select
or
Download
Code
In Section
Seekers of Perl Wisdom