Method::Destructor provides cumulative destructors, or DEMOLISH methods, which are introduced by Perl Best Practices and implemented in modules such as Class::Std or Moose. DEMOLISH is a destructor like DESTROY, but acts as a cumulative method.

To use the cumulative destructors, say use Method::Destructor and replace DESTROY with DEMOLISH. You can also say use Method::Destructor -optional if the destructor does not touch external resources. Optional destructors will not be called if objects are released in global destruction.