Path-AttrRouter

 view release on metacpan or  search on metacpan

lib/Path/AttrRouter.pm  view on Meta::CPAN

        $self->_load_cached_modules($cache_file);
    }
    else {
        $self->_load_modules;
    }
}

sub match {
    my ($self, $path, $condition) = @_;

    my @path = split m!/!, $path;
    unshift @path, '' unless @path;

    my ($action, @args, @captures);
 DESCEND:
    while (@path) {
        my $p = join '/', @path;
        $p =~ s!^/!!;

        for my $type (@{ $self->dispatch_types }) {
            $action = $type->match({



( run in 0.495 second using v1.01-cache-2.11-cpan-71847e10f99 )