Query: router::simple::declare
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Router::Simple::Declare(3pm) User Contributed Perl Documentation Router::Simple::Declare(3pm)NAMERouter::Simple::Declare - declarative interface for Router::SimpleSYNOPSISuse Router::Simple::Declare; my $router = router { connect '/{controller}/{action}/{id}'; submapper('/account', {controller => 'Account'}) ->connect('/login', {action => 'login'}) ->connect('/logout', {action => 'logout'}); }; $router->match('/entry/show/3');DESCRIPTIONEasy way to declare router object.USAGElook the SYNOPSIS.see Router::Simple for more details.FUNCTIONSrouter connect submapperSEE ALSORouter::Simple perl v5.14.2 2011-05-15 Router::Simple::Declare(3pm)