http://qs321.pair.com?node_id=700925


in reply to print on reboot or process shutdown

Read about END blocks in perlmod.