I would like the error produced by the die to appear in STDERR and/or STDOUT, but can't seem to get it to work$logf="logfile"; select STDERR; $|=1; unless (open STDERR, "|-") { eval { open ERRLOG, ">$logf" or die "Can't open $logf: $!\n"; while(<>) { print ERRLOG $_; print STDERR $_; } }; exit(0);
In reply to eval error by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |