Is there somehow I can "turn on" error message/error handling in Perl, putting out error message like Apache do by default with PHP? Explaining which line the error is at.
Greetings
Is there somehow I can "turn on" error message/error handling in Perl, putting out error message like Apache do by default with PHP? Explaining which line the error is at.
Greetings
Maybe you're after CGI::Carp. This module lets you redirect errors and/or warnings to the browser window.
From the doco:
use CGI::Carp qw(fatalsToBrowser);
die "Fatal error messages are now sent to browser";