P
pgodfrin
Greetings,
I just cant' remember how to go bout this - I have a piece of code
which does a series of prints to an open file:
open OUTFILE,">myfile" or die;
local $\="\n";
print OUTFILE 'first line of stuff';
print OUTFILE 'second line of stuff';
print OUTFILE 'third line of stuff';
I'd like to send the output to STDOUT instead of OUTFILE, but I don't
want to have to change the print statements en masse to specify
STDOUT.
Is there a way to make the open OUTFILE statement write to STDOUT
instead of the file name specifiied in the open statement? Or is there
another way to make the filehandle OUTFILE point to STDOUT?
pg
I just cant' remember how to go bout this - I have a piece of code
which does a series of prints to an open file:
open OUTFILE,">myfile" or die;
local $\="\n";
print OUTFILE 'first line of stuff';
print OUTFILE 'second line of stuff';
print OUTFILE 'third line of stuff';
I'd like to send the output to STDOUT instead of OUTFILE, but I don't
want to have to change the print statements en masse to specify
STDOUT.
Is there a way to make the open OUTFILE statement write to STDOUT
instead of the file name specifiied in the open statement? Or is there
another way to make the filehandle OUTFILE point to STDOUT?
pg