Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^2: "cleaning out" object data

by Forsaken (Friar)
on May 20, 2005 at 07:41 UTC ( #458869=note: print w/replies, xml ) Need Help??

in reply to Re: "cleaning out" object data
in thread "cleaning out" object data

That was also my first thought, but that:
- destroys the object if it isn't referenced elsewhere, or
- does absolutely nothing if it is still referenced elsewhere.

Basically, as it turns out, all that does is take the variable $self that previously contained a reference to a blessed object, and gives it a new value, a reference to a newly created anonymous hash. So unless $self was the only reference to the object(which it isn't in my specific case) absolutely nothing happens :-)

edit: formatting

Remember rule one...

Replies are listed 'Best First'.
Re^3: "cleaning out" object data
by pelagic (Priest) on May 20, 2005 at 07:50 UTC
    Yes, of course, you're absolutely right. So I'm afraid your somewhat unelegant solution is the best we can get.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://458869]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2017-02-19 18:18 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (293 votes). Check out past polls.