in reply to Print STDERR&STDOUT to log file and to the screen
use File::Tee qw(tee); tee(STDOUT, '>', "foo/bar.out"); tee(STDERR, '>>', "foo/bar.err"); [download]