Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Creating log files for errors and warnings

by Khen1950fx (Canon)
on Aug 27, 2010 at 07:32 UTC ( [id://857623]=note: print w/replies, xml ) Need Help??


in reply to Creating log files for errors and warnings

On a very simple level, open STDOUT for "some other data' and open STDERR for errors.
#!/usr/bin/perl use strict; use warnings; use diagnostics; open(STDOUT, '>', 'results.log') or die "Can't open log"; open(STDERR, '>', 'results_error.log') or die "Can't open log"; system("pmpath ExtUtils::MakeMaker"); system("pmpath Acme::AandB");

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-19 20:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found