Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Safe / @ISA Problem - worked it out

by rdw (Curate)
on Mar 19, 2002 at 20:49 UTC ( #152838=note: print w/replies, xml ) Need Help??


in reply to Safe / @ISA Problem

I've worked out what's going on (at least I think I have, and I know how to fix the problem now, so that's all I really care about). The warnings are because when the reference which is returned by B->new() is returned, it's then cleaned up - it's the cleanup which is issuing the warnings - it can't work out what 'B' is, because the @ISA isn't visible anymore - it's inside the Safe compartment.

If you add a sub DESTROY to package B (inside or outside) then the problem goes away.

Have fun,

rdw

  • Comment on Re: Safe / @ISA Problem - worked it out

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2020-07-02 17:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?