Making warnings trigger errors.

2007-01-23 Thread Tyler Bird
Does anybody know if there is a module or some kind of directive in either perl or mod_perl to make warnings produce the same affects as errors. Thanks Tyler

Re: Making warnings trigger errors.

2007-01-23 Thread Clinton Gormley
Just change the signal handler. $SIG{__WARN__} = $SIG{__DIE__}; Or to do it lexically: use warnings FATAL = 'all';

Re: Making warnings trigger errors.

2007-01-23 Thread Phil Whelan
Or to do it lexically: use warnings FATAL = 'all'; I used this before to find out where a warning was coming from that I just could track down. Easy to find if it dies.