The uploaded file

    CGI-Application-Dispatch-0.01.tar.gz

has entered CPAN as

  file: $CPAN/authors/id/W/WO/WONKO/CGI-Application-Dispatch-0.01.tar.gz
  size: 4713 bytes
   md5: 4c3b4fb8dfdbfb6fb5f4ec87c7840d61


NAME CGI::Application::Dispatch - Class used to dispatch request to CGI::Application based objects


SYNOPSIS Under mod_perl <Location /app> SetHandler perl-script PerlHandler CGI::Application::Dispatch </Location>


Under normal cgi #!/usr/bin/perl use strict; use CGI::Application::Dispatch;


CGI::Application::Dispatch->dispatch();


DESCRIPTION This module provides a way (as a mod_perl handler or running under vanilla CGI) to look at the path ($r->path_info or $ENV{PATH_INFO}) of the incoming request, parse off the desired module and it's run mode, create an instance of that module and run it.


It will translate a URI like this (under mod_perl):


/app/module_name/run_mode?extra_stuff...


or this (vanilla cgi)


/app/index.cgi?/module_name/run_mode?extra_stuff...


into something that will be functionally similar to this


my $app = Module::Name->new(..); $app->mode_param(sub {'run_mode'}); #this will set the run mode




-- Michael Peters Developer Plus Three, LP


--------------------------------------------------------------------- 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