in reply to Logging the results of 'die'
As for a way to make all dies go to a logfile, reopening STDERR to somewhere else at the beginning of the script could help you:
open STDERR, ">errors.log" or warn "failed to reopen STDERR: $!\n";
(updated because "actual problem" was the wrong phrase where I used it.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Logging the results of 'die'
by no_slogan (Deacon) on Jun 09, 2001 at 01:00 UTC |