[cgiapp] how to use C::A::Dispatch with FastCGI ?

Silent silent2600 at gmail.com
Wed Feb 20 20:59:22 EST 2008


Hi all,

has anyone use C-A-Dispatch with FastCGI ?
I can not make it work:

my code structure:
/APP/Base.pm   ### the base pm used by Admin/User
/APP/Admin.pm
/APP/User.pm
/APP/Dispatch.pm  ### the C-A-Dispatch table
app.fcgi

I have tryed "use base 'CGI::Application::FastCGI' "  in the Base.pm, but
the dispatch() not work, I always got the default app::run_mode

2. after search from google, I tryed:


#!/usr/bin/perl

use lib ".";
use CGI::Fast qw(:standard);
use APP::Dispatch;
while (my $q = CGI::Fast ) {
        APP::Dispatch->dispatch(
        args_to_new => { QUERY => $q },
      );
}

and use C-A in Base.pm
but the http header and run_mode output all dumped to apache error_log and
seems in a endless loop



needing help, thanks!


More information about the cgiapp mailing list