Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: orderly global destruction? blessed references gone? XS ok

by ikegami (Patriarch)
on Jul 27, 2011 at 00:32 UTC ( [id://916883]=note: print w/replies, xml ) Need Help??


in reply to Re^2: orderly global destruction? blessed references gone? XS ok
in thread orderly global destruction? blessed references gone? XS ok

That END block is in main/caller's package, not the $global's package

Yes, assuming you mean "ref($global)" by "$global's package".

Are you suggesting a package weakref list/hash and an END block in the same package in the that destroys all live instances of that package?

I was suggesting that if you create a global that's creating a problem, that you cleanup the global you created before it creates the problem.

What you mention could work, but it could also create new instances of the problem you are trying to avoid.

  • Comment on Re^3: orderly global destruction? blessed references gone? XS ok

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-25 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found