It so happens that the example that contains the answer to your question is in the example section of IO::Tee's documentation.
Edit: wait, you already use the \*STDOUT notation in your OP, I must be misunderstanding your question.
In reply to Re^3: Printing both to console and File
by Eily
in thread Printing both to console and File
by perluser455
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |