Routes::Tiny::Match - Matched object
my $match = $r->match('/foo/bar'); my $name = $match->name; my $params_hashref = $match->params; my $parent_match = $match->parent
Routes::Tiny::Match is a Value Object that holds params of a matched route.
name
my $name = $match->name;
Get original route's pattern name.
arguments
my $arguments = $match->arguments;
Get route's pattern arguments.
captures
my $hashref = $match->captures;
Get params.
params
An alias to captures.
parent
Reference to parent match in case of matching subroutes.
new
my $match = Routes::Tiny::Match->new;
Create new instance of Routes::Tiny::Match.
To install Routes::Tiny, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Routes::Tiny
CPAN shell
perl -MCPAN -e shell install Routes::Tiny
For more information on module installation, please visit the detailed CPAN module installation guide.