Knowledge Base by Megrisoft
Internet Knowledge Base
Glossary    Contact Us
Search  
   
Browse by Category


Knowledge Base by Megrisoft .: Programming .: Languages .: CGI and Perl .: How do I disable CGI::Carp?

How do I disable CGI::Carp?

How do I disable CGI::Carp?

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.


How helpful was this article to you?



Knowledge Base by Megrisoft Web Services Company in India