I've been developing an application using the latest developer release
of CGI::Application::Dispatch. Everything has gone great though I have
hit one minor snag I've yet to figure out. I was hoping some one
understood what I'm doing wrong here.

My CGI script looks like this...

#!/usr/bin/perl -w
use strict;
use Keys::Dispatch;
eval { Keys::Dispatch->dispatch };
if ($@) {
  print "Content-Type: text/html\n\n";
  print '<pre>';
  print "An error occurred: [EMAIL PROTECTED]"
    . 'Please notify the adminstrator of this service.';
  print '</pre>';
}

Where Keys::Dispatch is a subclass of CGI::Application::Dispatch 2_05.
When something goes wrong in a CGI::Application module (I forgot to
declare a variable, forgot a semi-colon etc) I get a 500 error in the
browser and a premature end of script headers error in the logs rather
then displaying the error as the code instructs. What is Dispatch
doing that this old trick of mine doesn't work?

<tim/>

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to