Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 musing on the Monastery: (4)
As of 2018-12-11 14:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many stories does it take before you've heard them all?







    Results (55 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!