Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    CGI::Carp 3.49

    Download button

    No screenshots available
    Downloads: 863  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.5/5)
    17 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Lincoln D. Stein | More programs
    Perl Artistic License / FREE
    July 4th, 2008, 13:38 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    CGI::Carp description

    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::Carp


    And 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:

    [Fri Nov 17 21:40:43 1995] test.pl: I'm confused at test.pl line 3.
    [Fri Nov 17 21:40:43 1995] test.pl: Got an error message: Permission denied.
    [Fri Nov 17 21:40:43 1995] test.pl: I'm dying.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    CGI routines | error log | Perl module | CGI | routines | HTTPD

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM