Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Router::Simple::Declare

Name Router::Simple::Declare
Version
Located at /usr/share/perl5/vendor_perl
File /usr/share/perl5/vendor_perl/Router/Simple/Declare.pm
Is Core No
Search CPAN for this module Router::Simple::Declare
Documentation Router::Simple::Declare
Module Details Router::Simple::Declare


NAME

Router::Simple::Declare - declarative interface for Router::Simple


SYNOPSIS

    use 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');


DESCRIPTION

Easy way to declare router object.


USAGE

look the SYNOPSIS.see the Router::Simple manpage for more details.


FUNCTIONS

router
connect
submapper


SEE ALSO

the Router::Simple manpage

Perl Diver brought to you by ScriptSolutions.com © 1997- 2025