Input::Validator::Constraint::Length - Length constraint
$validator->field('name')->length(10); $validator->field('name')->length(1, 40);
Checks whether the value is exactly n characters length, or is between n, m values.
n
n, m
is_valid
Validates the constraint.
Input::Validator, Input::Constraint
To install Input::Validator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Input::Validator
CPAN shell
perl -MCPAN -e shell install Input::Validator
For more information on module installation, please visit the detailed CPAN module installation guide.