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

Download:
Input-Validator-0.001005.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Input::Validator::Constraint::Ip - Ip constraint

SYNOPSIS ^

    $validator->field('ip')->constraint('ip');
    $validator->field('ip')->constraint('ip', noprivate => 1);

DESCRIPTION ^

Checks whether a value looks like an ip address.

ARGUMENTS ^

noprivate

Private networks are considered invalid. Default is OFF.

METHODS ^

is_valid

Validates the constraint.

SEE ALSO ^

Input::Validator, Input::Constraint

syntax highlighting: