1Validation::Class::DireUcsteirveC:o:nBtertiwbeuetne(d3V)PaelrildaDtoicounm:e:nCtlaatsiso:n:Directive::Between(3)
2
3
4

NAME

6       Validation::Class::Directive::Between - Between Directive for
7       Validation Class Field Definitions
8

VERSION

10       version 7.900057
11

SYNOPSIS

13           use Validation::Class::Simple;
14
15           my $rules = Validation::Class::Simple->new(
16               fields => {
17                   person_age  => {
18                       between => '18-95'
19                   }
20               }
21           );
22
23           # set parameters to be validated
24           $rules->params->add($parameters);
25
26           # validate
27           unless ($rules->validate) {
28               # handle the failures
29           }
30

DESCRIPTION

32       Validation::Class::Directive::Between is a core validation class field
33       directive that provides the ability to validate the numeric range of
34       the associated parameters.
35
36       •       alternative argument: an-array-of-numbers
37
38               This directive can be passed a single value or an array of
39               values:
40
41                   fields => {
42                       person_age  => {
43                           between => [18, 95]
44                       }
45                   }
46

AUTHOR

48       Al Newkirk <anewkirk@ana.io>
49
51       This software is copyright (c) 2011 by Al Newkirk.
52
53       This is free software; you can redistribute it and/or modify it under
54       the same terms as the Perl 5 programming language system itself.
55
56
57
58perl v5.34.0                      2021-V0a7l-i2d7ation::Class::Directive::Between(3)
Impressum