Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by rir (Vicar)
on Oct 23, 2002 at 17:54 UTC ( [id://207467]=note: print w/replies, xml ) Need Help??


in reply to How can I tell at run time that my script is writing to STDERR?

Zigdon's answer is perfectly correct.

So this is offered as a more generalized solution. Just override the offending function like so:

use subs qw( warn); sub warn { die @_} warn "This is a warning"; print "NOT REACHED\n";
  • Comment on Re: How can I tell at run time that my script is writing to STDERR?
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-20 03:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found