in reply to How can I tell at run time that my script is writing to STDERR?
use warnings FATAL => 'all';
will have the desired effect. However, this won't kill my program if I issue a warning using 'warn'