Re[2]: [Xitami] Re: ActivePerl & Xitami - CGI problems Continued

Peter van der Goes xitami@lists.xitami.org
Wed, 25 Sep 2002 08:50:46 -0500


Don't bother looking into that second version of <animal.pl> I included in
my just-sent message. There are obvious typos.

my $animal:

and

use CGI::Carp qw(fayalsToBrowser);

Once fixed, the script works!

******************* Lesson Learned! ********************

Never, never test scripts without:

use CGI::Carp qw(fatalsToBrowser);

in them!!!!! (Sticks your nose right in the problem)

Again the patience, kindness and expertise you've all shown me is much
appreciated!

----- Original Message -----
From: "Paul Reid" <preid@rci.rutgers.edu>
To: "Peter van der Goes" <xitami@lists.xitami.org>
Sent: Tuesday, September 24, 2002 10:52 AM
Subject: Re[2]: [Xitami] Re: ActivePerl & Xitami - CGI problems Continued


> No, it isn't the browser. I hate to exonerate IE, and it will
> sometimes throw bogus error messages, but it should work.
>
> PLEASE use the "Carp Fatals To Browser" code Patricko posted. IMHO,
> you can not debug these things without it.
>
> Are we allowing file attachments on this list? If so, attached is a
> Perl form-handler that works for me. It is called from a form that
> supplies the variables "$ENV{FORM_...." and sends an email via the
> local host, then prints something for the user to see (either
> "Thanks" or "error").
>
> I have clobbered the script name and the shebang so nobody's email
> reader tries to Run it. No matter, because I've also clobbered the
> mail parameters so you guys won't annoy the person who gets the real
> script's emails.
>
> If you fix the shebang, it should at least return a polite error
> message. if called from a form with "name" "gender' and "Address1"
> fields, it should display them before erroring on the mail-call. If
> even that does not work, un-comment the line with "Hello?" and see
> if it runs that far.
>
>  -PRR