AtExit - a Perl module for exit processing This is "AtExit", a Perl module which exports a function name "atexit()" to perform ANSI-C style exit processing for Perl5 programs; and a class named "AtExit" to register clean-up functions for any variable-scope in which the AtExit object is defined. You can read a nicely formatted version of the documentation for this module online: https://metacpan.org/pod/AtExit You should be able to install this using your usual method for installing modules from CPAN. If you don't have a usual method, have a look at: http://www.cpan.org/modules/INSTALL.html This software is copyright (C) 1996 Andrew Langmead. All rights reserved. AUTHORS/CONTRIBUTORS - Andrew Langmead (initial draft). - Brad Appleton (Version 1.02 and 2.00). - Michael A. Chase (Version 2.00). - Currently maintained Neil Bowers . COPY/REUSE POLICY AtExit is free software; you can redistribute it and/or modify it under the terms of the Artistic License distributed with Perl version 5.000 or (at your option) any later version. Please refer to the Artistic License that came with your Perl distribution for more details. The Artistic License should have been included in your distribution of Perl. It resides in the file named "Artistic" at the top-level of the Perl source tree (where Perl was downloaded/unpacked -- ask your system administrator if you dont know where this is). Alternatively, the current version of the Artistic License distributed with Perl can be viewed on-line on the World-Wide Web (WWW) from the following URL: http://www.perl.com/perl/misc/Artistic.html The latest version of Perl can be obtained on the World-Wide web (WWW) from the following URL: http://www.perl.com/CPAN/src/latest.tar.gz DISCLAIMER This software is distributed in the hope that it will be useful, but is provided "AS IS" WITHOUT WARRANTY OF ANY KIND, either expressed or implied, INCLUDING, without limitation, the implied warranties of MERCHANTABILITY and FITNESS FOR A PARTICULAR PURPOSE. The ENTIRE RISK as to the quality and performance of the software IS WITH YOU (the holder of the software). Should the software prove defective, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. IN NO EVENT WILL ANY COPYRIGHT HOLDER OR ANY OTHER PARTY WHO MAY CREATE, MODIFY, OR DISTRIBUTE THE SOFTWARE BE LIABLE OR RESPONSIBLE TO YOU OR TO ANY OTHER ENTITY FOR ANY KIND OF DAMAGES (no matter how awful - not even if they arise from known or unknown flaws in the software). Please refer to the Artistic License that came with your Perl distribution for more details.