Kelp

 view release on metacpan or  search on metacpan

lib/Kelp/Manual.pod  view on Meta::CPAN


Using regular expressions is so Perl. Sometimes, however, it gets a little
overwhelming. Use named paths if you anticipate that you or someone else will
ever want to maintain your code.

=head4 Explicit

    $r->add( "/update/:id", "update" );

    # Later
    sub update {
        my ( $self, $id ) = @_;
        # Do something with $id
    }

=head4 Optional

    $r->add( "/person/?name", sub {
        my ( $self, $name ) = @_;
        return "I am " . $name // "nobody";
    });

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.362 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )