Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Logging output of a script to screen AND file

by bobf (Monsignor)
on Aug 07, 2010 at 03:34 UTC ( [id://853513]=note: print w/replies, xml ) Need Help??


in reply to Logging output of a script to screen AND file

I have used IO::Tee in the past. IIRC, it was pretty simple and did the job.

use IO::Tee; $tee = IO::Tee->new( $handle1, $handle2 ); print $tee "foo";

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-23 22:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found