Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^3: No DESTROY object.

by ambrus (Abbot)
on Jan 22, 2010 at 17:22 UTC ( #819010=note: print w/ replies, xml ) Need Help??

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.

Comment on Re^3: No DESTROY object.
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://819010]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2015-07-03 17:50 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (54 votes), past polls