The backticks work fine!! Thanks for your help.
use IO::Tee;
my $tee = IO::Tee -> new(">stdout.log", \*STDOUT);
my $clrout = `cleartool describe lbtype:MYLABEL`;
print $tee "\n$clrout also prints to screen and redirects to file!\n";
print $tee "\nThis will print to screen and redirects to file!\n";
In reply to Re^2: How do I redirect outut from system () to a file and also to screen
by Anonymous Monk
in thread How do I redirect outut from system () to a file and also to screen
by gim
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |