Re: Can Perl redirect STDOUT to file AND to command window?



rcm228@xxxxxxxxx wrote:

> I have done standard Perl STDOUT redirection to a pipe and to a file,
> however, I have been searching for a way to redirect STDOUT to a file
> and to the command window at the same time. So far, no luck - is this
> possible?

Simply print to both.

print OUTFILE "my data";
print "my data";

Purl Gurl
.



Relevant Pages