use File::Tee qw(tee); tee(STDOUT, '>', "foo/bar.out"); tee(STDERR, '>>', "foo/bar.err");
In reply to Re: Print STDERR&STDOUT to log file and to the screen
by salva
in thread Print STDERR&STDOUT to log file and to the screen
by Noame
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |