I use perl as cgi for apache server,when each time the script encounters an error,the client just show 500 error and I have to check the apache error log every time.
Is there a way to let perl send it's error message just to the client (just like asp's debug mode)?
You need to use the CGI::Carp module:
use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With