September 2002
Intermediate to advanced
544 pages
13h 6m
English
One of the most useful tools for Web developers who are trying to figure out how to fix broken CGI scripts is the server’s error log. If a CGI program dies due to a runtime error, the error message that the program generated when it died is stored in the error log. Unfortunately, these error messages generally aren’t time stamped or marked with the name of the program that generated them. The CGI::Carp module solves that problem.
When you add the line
use CGI::Carp;
at the beginning of a CGI program, the module traps the die and warn functions, adds a time stamp and program identification information to the error message, and saves the message in the error log. Here’s an error log entry for a program that does ...
Read now
Unlock full access