The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Path::Map::Match - Match object for Path::Map

DESCRIPTION

This object contains the match state from a Path::Map lookup.

METHODS

new

The constructor. Should not be called directly, these objects should always be instantiated via "lookup" in Path::Map.

handler

The handler that this match points to. This is identical to whatever was originally passed to "add_handler" in Path::Map.

variables

A hashref of variables matched against the path.

For example given the path_template root/:var, a path root/foo would yield a result of { var => 'foo' }.

values

An arrayref of variable values, without names, in the order in which they appeared in the path.

mapper

The Path::Map object which matched, this is normally an object nested inside the main "root" mapper.

AUTHOR

Matt Lawrence <mattlaw@cpan.org>

COPYRIGHT

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.