in reply to How can I tell at run time that my script is writing to STDERR?
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";
|
|---|