cgi::application::dispatch::regexp(3pm) debian man page | unix.com

Man Page: cgi::application::dispatch::regexp

Operating Environment: debian

Section: 3pm

CGI::Application::Dispatch::Regexp(3pm) 		User Contributed Perl Documentation		   CGI::Application::Dispatch::Regexp(3pm)

NAME
CGI::Application::Dispatch::Regexp - Dispatch requests to CGI::Application based objects using regular expressions
SYNOPSIS
use CGI::Application::Dispatch::Regexp; CGI::Application::Dispatch::Regexp->dispatch( prefix => 'MyApp', table => [ '' => { app => 'Welcome', rm => 'start' }, qr|/([^/]+)/?| => { names => ['app'] }, qr|/([^/]+)/([^/]+)/?| => { names => [qw(app rm)] }, qr|/([^/]+)/([^/]+)/page(d+).html?| => { names => [qw(app rm page)] }, ], );
DESCRIPTION
CGI::Application::Dispatch uses its own syntax dispatch table. "CGI::Application::Dispatch::Regexp" allows one to use flexible and powerful Perl regular expressions to transform a path into argument list.
DISPATCH TABLE
The dispatch table should contain list of regular expressions with hashref of corresponding parameters. Hash element 'names' is a list of names of regular expression groups. The default table looks like this: table => [ qr|/([^/]+)/?| => { names => ['app'] }, qr|/([^/]+)/([^/]+)/?| => { names => [qw(app rm)] }, ], Here's an example of defining a custom 'page' parameter: qr|/([^/]+)/([^/]+)/page(d+).html/?| => { names => [qw(app rm page)] }, COPYRIGHT &; LICENSE Copyright Michael Peters and Mark Stosberg 2008, all rights reserved.
SEE ALSO
CGI::Application, CGI::Application::Dispatch perl v5.14.2 2011-11-26 CGI::Application::Dispatch::Regexp(3pm)
Related Man Pages
cgi::application::plugin::autorunmode::filedelegate(3pm) - debian
cgi::application::plugin::dbiprofile::graph::gdgraphinline(3pm) - debian
cgi::application::plugin::dbiprofile::graph::svgtt(3pm) - debian
cgi::application::plugin::debugscreen(3pm) - debian
plack::handler::cgi(3pm) - debian
Similar Topics in the Unix Linux Community
How to loop through directories to touch files
restart process based on file
Run sudo to another user
Understanding Results from df and du commands
Copy content of multiple sh's into one