$SIG{__DIE__} = sub {die log_error(shift) };#changed $_->shift $SIG{__WARN__} = sub {warn log_error(shift) };
Edited: Changed $_ to shift
In reply to Re: Using STDERR and timestamps to write to a log file
by deibyz
in thread Using STDERR and timestamps to write to a log file
by jacques
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |