Making warnings trigger errors.
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.
Just change the signal handler. $SIG{__WARN__} = $SIG{__DIE__}; Or to do it lexically: use warnings FATAL = 'all';
Re: Making warnings trigger errors.
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.