Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Answer: How do I make a destructor?

( #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 having an uproarious good time at the Monastery: (6)
As of 2014-08-31 10:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls