It works, but now you've got two copies of every message. At the very least wrap that up in a pair of subs.
sub my_print { print @_; print CLEANLOG @_ } sub err_print { print STDERR @_; print ERRLOG @_ }
--
We're looking for people in ATL
In reply to Re^2: Copy STDOUT and STDERR to logfile and also display to screen
by Fletch
in thread Copy STDOUT and STDERR to logfile and also display to screen
by boat73
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |