Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Printing both to console and File

by perluser455 (Initiate)
on May 17, 2017 at 10:15 UTC ( #1190452=note: print w/replies, xml ) Need Help??


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 (Prior) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1190452]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (12)
As of 2018-10-18 19:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...














    Results (104 votes). Check out past polls.

    Notices?