Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How do I make a destructor?

by chromatic (Archbishop)
on Apr 20, 2000 at 20:56 UTC ( [id://8204]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package CowboyNeal;
    
    ...
        my $self = shift;
        print ref($self), " is going away.  It was known as ", $self->name
    +(), " back in the day.\n";
    }
    
  2. or download this
    sub DESTROY {
        my $self = shift;
        $self->{first} = undef;
        $self->{last} = undef;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-24 06:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found