Perl Send Error to Browser

Displaying errors on the browser is insecure and not a good practice but if you want to debug the script and fix it then it will much easier if the errors are displayed on the browser itself and you can you disable it later.

Add the following lines to script for sending debugging info to the browser when an error occurs.

[perl]
use CGI::Carp qw(fatalsToBrowser);
[/perl]


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *


− seven = 0