This is "AtExit", a Perl5 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.

Homepage:
https://metacpan.org/release/AtExit
