Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Routes::Tiny::Match(3)User Contributed Perl DocumentatioRoutes::Tiny::Match(3)

NAME
       Routes::Tiny::Match - Matched object

SYNOPSIS
	   my $match = $r->match('/foo/bar');

	   my $name = $match->name;
	   my $params_hashref =	$match->params;
	   my $parent_match = $match->parent

DESCRIPTION
       Routes::Tiny::Match is a	Value Object that holds	params of a matched
       route.

ATTRIBUTES
   "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.

METHODS
   "new"
	   my $match = Routes::Tiny::Match->new;

       Create new instance of Routes::Tiny::Match.

perl v5.32.1			  2017-07-12		Routes::Tiny::Match(3)

NAME | SYNOPSIS | DESCRIPTION | ATTRIBUTES | METHODS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Routes::Tiny::Match&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help