The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Path::Dispatcher::Rule::Eq - predicate is a string equality

SYNOPSIS

    my $rule = Path::Dispatcher::Rule::Eq->new(
        string => 'comment',
        block  => sub { display_comment($2) },
    );

DESCRIPTION

Rules of this class simply check whether the string is equal to the path.

ATTRIBUTES

string