Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Answer: How do I make a destructor?

by chromatic (Archbishop)
on Apr 20, 2000 at 20:56 UTC ( #8204=categorized answer: 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
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2016-09-28 18:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (536 votes). Check out past polls.