Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

RE: Re: How does one redirect STDERR to a file? ((Filehandle

by ncw (Friar)
on Sep 26, 2000 at 23:33 UTC ( [id://34093]=note: print w/replies, xml ) Need Help??


in reply to Re: How does one redirect STDERR to a file? ((Filehandle
in thread How does one redirect STDERR to a file? ((Filehandle, redirection, logging))

That probably wanted to be :-
BEGIN { open(STDERR, ">>stderr.log") or die "Failed to open log file"; }
Note the >> and the or die.

You could do this with a tied file handle too, as demonstrated recently by tilly - here

Log In?
Username:
Password:

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

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

    No recent polls found