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