http://www.perlmonks.org?node_id=700925


in reply to print on reboot or process shutdown

Read about END blocks in perlmod.