1Validation::Class::DireUcsteirveC:o:nSttraitbeu(t3e)d PeVralliDdoactuimoenn:t:aCtliaosns::Directive::State(3)
2
3
4

NAME

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

VERSION

10       version 7.900058
11

SYNOPSIS

13           use Validation::Class::Simple;
14
15           my $rules = Validation::Class::Simple->new(
16               fields => {
17                   address_state => {
18                       state => 1
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::State is a core validation class field
33       directive that handles state validation for states in the USA. States
34       will be validated against a list of state (case-insensitive abbreviated
35       and long) names.
36
37       For example: ny, NY, New York, and new york will validate.
38

AUTHOR

40       Al Newkirk <anewkirk@ana.io>
41
43       This software is copyright (c) 2011 by Al Newkirk.
44
45       This is free software; you can redistribute it and/or modify it under
46       the same terms as the Perl 5 programming language system itself.
47
48
49
50perl v5.36.0                      2022-07V-a2l2idation::Class::Directive::State(3)
Impressum