Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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?
[mithaldu]: ugh, i'm glad my question got a useful answer, but i am disheartened to see that, stackoverflow- style, the correct answer is buried below one that looks superficially appropiate, but entirely misses the point of the question

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2018-08-14 08:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (146 votes). Check out past polls.

    Notices?