Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 making s'mores by the fire in the courtyard of the Monastery: (20)
As of 2014-07-24 15:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (161 votes), past polls