You can have a $SIG{__DIE__) handler add the timestamp,
local $SIG{__DIE__} = sub { my $msg = localtime() . ' ' . shift; die $msg; };
After Compline,
Zaxo
In reply to Re: Using STDERR and timestamps to write to a log file
by Zaxo
in thread Using STDERR and timestamps to write to a log file
by jacques
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |