There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

NAME

Input::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

Input::Validator, Input::Constraint