Maybe you want an END { ... } block? (see perlmod for details)
In reply to Re: handler for normal termination? by almut in thread handler for normal termination? by BenHopkins