in reply to print the output on the screen and to a file
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: print the output on the screen and to a file
by rkshyam (Acolyte) on Mar 30, 2012 at 11:49 UTC | |
by Marshall (Canon) on Mar 30, 2012 at 12:33 UTC |