in reply to handler for normal termination?

No, signals aren't sent for normal flow.

END { clean_up() }

Note that you can use $? in an END handler to get a guess as to whether the script is ending "normally" or not.

- tye        

Replies are listed 'Best First'.
Re^2: handler for normal termination? (END)
by BenHopkins (Sexton) on Jun 23, 2007 at 05:10 UTC
    C always cleaned up after termination using, I figured, a signal from UNIX on process termination. Silly me to think that behavior would be emulated. Anyhow, the END block works just fine. Thanks.