in reply to RE: How can I keep track of the execution time of a script?
in thread How can I keep track of the execution time of a script?
Perhaps you wanted an END block instead of a DIE handler.
A die handler is only triggered on aborts. END blocks are triggered on all normal terminations, including aborts.END { warn "this script took ", time - $^T, " seconds\n"; }
-- Randal L. Schwartz, Perl hacker
|
---|
Replies are listed 'Best First'. | |
---|---|
RE:(3) How can I keep track of the execution time of a script?
by Adam (Vicar) on Oct 04, 2000 at 23:48 UTC |
In Section
Seekers of Perl Wisdom