Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: redirecting output to STDERR and STDOUT

by Limbic~Region (Chancellor)
on Feb 22, 2005 at 14:22 UTC ( [id://433335]=note: print w/replies, xml ) Need Help??


in reply to redirecting output to STDERR and STDOUT

Anonymous Monk,
I'm working on a perl program that calls a module,...

Without telling us what module, it is difficult to help you. Some modules support more than just filename - such as a pre-existing filehandle. The following might work.

Module::Name->method( log => *STDOUT, error => *STDERR );
Replacing the appropriate pieces with the appropriate information. You might also want to look at IO::Tee so that you can get a log and information to the screen but without telling us what module, we will just be guessing.

Cheers - L~R

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2024-04-25 02:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found