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

NAME

MojoX::Validator::Constraint::Length - Length constraint

SYNOPSIS

    $validator->field('name')->length(10);
    $validator->field('name')->length(1, 40);

DESCRIPTION

Checks whether the value is exactly n characters length, or is between n, m values.

METHODS

is_valid

Validates the constraint.

SEE ALSO

MojoX::Validator, MojoX::Constraint