UPDATE: corrected some typos and added the die statement to openopen my $out_file, '>>', 'myoutputfilename.txt' or die "$!"; my $output = 'blablabla'; print $output; # print to screen print $out_file $output; # print to file
In reply to Re: print the output on the screen and to a file
by wwe
in thread print the output on the screen and to a file
by rkshyam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |