CGI::Carp

CGI::Carp is a Perl module with CGI routines for writing to the HTTPD (or other) error log.
Download

CGI::Carp Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Lincoln D. Stein
  • Publisher web site:
  • http://search.cpan.org/~lds/

CGI::Carp Tags


CGI::Carp Description

CGI::Carp is a Perl module with CGI routines for writing to the HTTPD (or other) error log. CGI::Carp is a Perl module with CGI routines for writing to the HTTPD (or other) error log.SYNOPSIS use CGI::Carp; croak "We're outta here!"; confess "It was my fault: $!"; carp "It was your fault!"; warn "I'm confused"; die "I'm dying.n"; use CGI::Carp qw(cluck); cluck "I wouldn't do that if I were you"; use CGI::Carp qw(fatalsToBrowser); die "Fatal error messages are now sent to browser";CGI scripts have a nasty habit of leaving warning messages in the error logs that are neither time stamped nor fully identified. Tracking down the script that caused the error is a pain. This fixes that. Replace the usual use Carp;with use CGI::CarpAnd the standard warn(), die (), croak(), confess() and carp() calls will automagically be replaced with functions that write out nicely time-stamped messages to the HTTP server error log.For example: test.pl: I'm confused at test.pl line 3. test.pl: Got an error message: Permission denied. test.pl: I'm dying. Requirements: · Perl


CGI::Carp Related Software