Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How can I tell at run time that my script is writing to STDERR?

by .tom. (Initiate)
on Oct 25, 2002 at 11:43 UTC ( [id://207962]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print STDERR "prints...\n";
    
    close(STDERR);
    
    print STDERR "doesn't print...\n" or print "this was bound to fail\n";
    
  2. or download this
    open(STDERR,'>/dev/null');
    
    print STDERR "doesn't fail so this..." or print "...won't print";
    

Log In?
Username:
Password:

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

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

    No recent polls found