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

Download:
Input-Validator-0.001005.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Input::Validator::Group - Run constraint on group of fields

SYNOPSIS ^

    $validator->group('passwords' => [qw/password confirm_password/])->equal;

DESCRIPTION ^

    Run constraint on group of fields.

ATTRIBUTES ^

error

    my $error = $group->error;

Holds group's error message.

name

    $group->name('foo');
    my $name = $group->name;

Group name.

equal

Shortcut

    $group->constraint(equal => @_);

constraint

    $group->constraint(equal => @_);

Adds constraint to the group.

is_valid

Checks whether group's constraints are valid.

unique

    $group->constraint(equal => @_);

METHODS ^

syntax highlighting: