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

NAME

6       Validation::Class::Directive::Matches - Matches 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                   password => {
18                       matches => 'password2'
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::Matches is a core validation class field
33       directive that validates whether the value of the dependent parameters
34       matches that of the associated field.
35
36       ยท       alternative argument: an-array-of-parameter-names
37
38               This directive can be passed a single value or an array of
39               values:
40
41                   fields => {
42                       password => {
43                           matches => ['password2', 'password3']
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.32.0                      2020-V0a7l-i2d8ation::Class::Directive::Matches(3)
Impressum