CGI::Alert

CGI::Alert is a Perl module to report CGI script errors to maintainer.
Download

CGI::Alert Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Ed Santiago
  • Publisher web site:
  • http://search.cpan.org/~esm/CGI-Alert-1.08/Alert.pm

CGI::Alert Tags


CGI::Alert Description

CGI::Alert is a Perl module to report CGI script errors to maintainer. CGI::Alert is a Perl module to report CGI script errors to maintainer.SYNOPSIS use CGI::Alert 'youraddress@your.domain';That's all. Everything else is transparent to your script.Or: use CGI::Alert qw(you@your.domain http_die); ... my $foo = param('foo') or http_die '400 Bad Request', 'foo param missing';The http_die function provides a one-call mechanism for emitting an HTTP error status with a helpful message. This is intended mostly for handling assert-style situations: you want to make sure you don't continue past a bad point.CGI::Alert will inform you by email of warnings and errors (from die or from exiting with nonzero status).If the script terminates normally (exit status 0), and no warnings were issued by the script or by Perl, CGI::Alert is a no-op. It just consumes resources but has no other effect.If the script terminates normally, but has issued warnings (either directly via warn, or by Perl itself from the warnings pragma), CGI::Alert will send you an email message with the first 10 of those warnings, plus other details (see below).If the script terminates via die, CGI::Alert sends you an email message with the details. It also displays a big 'Uh-Oh' on the remote web user's browser, informing him/her that an error has occurred, and that the maintainer has been notified.CGI::Alert is useful for letting you know of problems in your scripts. It's also useful for adding FIXMEs: you can leave unimportant-seeming sections unimplemented, but put a "warn" statement in them. If you get email from that section, you know your users have a need for that functionality. Requirements: · Perl


CGI::Alert Related Software