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

Re: How do I make a destructor?

by nite_man (Deacon)
on Feb 10, 2003 at 08:48 UTC ( [id://234053]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     sub DESTROY{
          my $self = shift;
          $self->coun_decr();
          bless $self, $ISA[0]; 
     }
    
  2. or download this
      my $inst_count = 0;
      sub get_inst_count { $inst_count }
      sub _incr_inst_count { ++$inst_count }
      sub _decr_inst_count { --$inst_count }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-03-19 11:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found