![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: No DESTROY object.by ambrus (Abbot) |
on Jan 22, 2010 at 17:22 UTC ( #819010=note: print w/replies, xml ) | Need Help?? |
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
|
|