Knowledge Base: CGI and Perl
How do I disable CGI::Carp?
Posted by Mike Kohli on 04 March 2013 04:08 PM

What is CGI::Carp 
The CGI::Carp modules may come in very handy when you are a beginner with Perl, since it outputs error messages to the browser instead of to the server error log.

Anyway, to stop using the CGI::Carp module, open all the .cgi files, and find this line: 
use CGI::Carp qw(fatalsToBrowser); 
You need to comment this line, by placing a "#" in front of the line, so it'll look like this: 
#use CGI::Carp qw(fatalsToBrowser); 
or you can delete the line. The cgi script won't use the module now.



Copyright © 2000 - 2013 Megrisoft Limited