in reply to Re: Re: Re: Re: explicitly calling destructor
in thread explicitly calling destructor
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(); }
|
|---|