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



rcm228@xxxxxxxxx wrote:
> However, I am looking for something like this where I dont need to
> print to the $tee handle:

Hmmm. I don't know if you can do this. 'print' (by default) goes to
STDOUT. But you want to redefine STDOUT as a tee that goes to a file
and... STDOUT. But STDOUT is now a tee that goes to a file and...
STDOUT. This goes on forever.

.