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

Re: Re: Re: Re: Re: explicitly calling destructor

by LanceDeeply (Chaplain)
on May 16, 2003 at 18:09 UTC ( [id://258719]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Re: explicitly calling destructor
in thread explicitly calling destructor

mla,
please forgive my naive example but, i think iburrell and hossman are referring to something like below, where the actual lock is your pre-desctruct flag...

sub clean_up { my $self = shift; if ( $self->{Lock} ) { # # the code to release the lock # $self->{Lock} = 0; } } sub DESTROY { my $self = shift; $self->clean_up(); }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-25 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found