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 some help in tracking
down warnings, so I do something like this:
use Carp;
$SIG{__WARN__} = \&Carp::cluck;
--
Michael Peters
Developer
Plus Three, LP
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.