in reply to Re: Gettin ALL errors with carp module
in thread Gettin ALL errors with carp module

Well, part of what is confusing me was that in the Carp Documentation, I found this bit of code:

BEGIN { use CGI::Carp qw(carpout); open(LOG, ">>/usr/local/cgi-logs/mycgi-log") or die("Unable to open mycgi-log: $!\n"); carpout(LOG); }
Which, according to the documentation, catches compile time errors and writes them to a filehandle. So I figured the same could be done and use a filehandle to write to the browser. Am I wrong?

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar";
$nysus = $PM . $MCF;

Replies are listed 'Best First'.
Re: Re: Re: Gettin ALL errors with carp module
by Masem (Monsignor) on May 20, 2001 at 17:23 UTC
    You need to include that specific block of code (including the BEGIN statement), for compile time errors to be caught. Just using use CGI::Carp will not do the compile time catching.
    Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain