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.

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 Michael Peters
Tyler Bird wrote: > 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. Just change the signal handler. $SIG{__WARN__} = $SIG{__DIE__}; Not sure why you'd want that though. But sometimes I need