[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] A small CGI::Application::Dispatch snag.


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: suppressed"
    . '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/suppressed/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.