MATSUNO★Tokuhiro > FormValidator-Lite-0.37 > FormValidator::Lite::Constraint::Number

Download:
FormValidator-Lite-0.37.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source   Latest Release: FormValidator-Lite-0.38

NAME ^

FormValidator::Lite::Constraint::Number - number constraints

DESCRIPTIOIN ^

This module provides number comparison constraints.

CONSTRAINTS ^

BETWEEN
    $v->check(
        number => [BETWEEN => qw/1 10/],
    );

Checks if parameter is between given interval.

LESS_THAN

Checks if parameter is less than given limit.

LESS_EQUAL

Checks if parameter is less than or equal to given limit.

MORE_THAN

Checks if parameter is more than given limit.

MORE_EQUAL

Checks if parameter is more than or equal to given limit.

syntax highlighting: