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