Вячеслав Тихановский > Input-Validator-0.001005 > Input::Validator::Constraint::Length

Download:
Input-Validator-0.001005.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

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

syntax highlighting: