Carp::Notify

Loudly complain in lots of places when things break badly
Download

Carp::Notify Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jim Thomason
  • Publisher web site:
  • http://search.cpan.org/~jimt/Basset-1.04/lib/Basset/Machine.pm

Carp::Notify Tags


Carp::Notify Description

Loudly complain in lots of places when things break badly Carp::Notify - Loudly complain in lots of places when things break badly.SYNOPSISUse it in place of die or croak, or warn or carp. #with Carp; use Carp; if ($something_a_little_bad) { carp("Oh no, a minor error!")}; if ($something_bad) { croak ("Oh no an error!")}; #with Carp::Notify; use Carp::Notify; if (something_a_little_bad) {notify("Oh no, a minor error!")}; if ($something_bad) { explode ("Oh no an error!")};Carp::Notify is an error reporting module designed for applications that are running unsupervised (a CGI script, for example, or a cron job). If a program has an explosion, it terminates (same as die or croak or exit, depending on preference) and then emails someone with useful information about what caused the problem. Said information can also be logged to a file. If you want the program to tell you something about an error that's non fatal (disk size approaching full, but not quite there, for example), then you can have it notify you of the error but not terminate the program.Defaults are set up within the module, but they can be overridden once the module is used, or as individual explosions take place. Please set up your appropriate defaults in the module. It'll save you headaches later. Requirements: · Perl


Carp::Notify Related Software