in reply to Re^2: No DESTROY object.
in thread No DESTROY object.
For your second question, if you replace our $bob to my $bob, then the DESTROY does get called. This way, perl knows that $bob is a global so it optimizes the sub constructor to a constant again.
|
---|
In Section
Seekers of Perl Wisdom