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

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

by ncw (Friar)
on Sep 26, 2000 at 23:33 UTC ( #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? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2022-01-28 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (73 votes). Check out past polls.

    Notices?