in reply to Re: Printing both to console and File
in thread Printing both to console and File

Thanks for the reply, but Can you Please let me know how to pass stdout/stderr to filehandles when declared as use IO::Tee; $tee = IO::Tee->new($handle1, $handle2);
  • Comment on Re^2: Printing both to console and File

Replies are listed 'Best First'.
Re^3: Printing both to console and File
by Eily (Monsignor) on May 17, 2017 at 14:54 UTC

    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.