1Validation::Class::DireUcsteirveC:o:nUtUrIiDb(u3t)ed PerVlalDiodcautmieonnt:a:tCiloanss::Directive::UUID(3)
2
3
4
6 Validation::Class::Directive::UUID - UUID Directive for Validation
7 Class Field Definitions
8
10 version 7.900057
11
13 use Validation::Class::Simple;
14
15 my $rules = Validation::Class::Simple->new(
16 fields => {
17 user_uuid => {
18 uuid => 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
32 Validation::Class::Directive::UUID is a core validation class field
33 directive that handles validation of Globally/Universally Unique
34 Identifiers.
35
37 Al Newkirk <anewkirk@ana.io>
38
40 This software is copyright (c) 2011 by Al Newkirk.
41
42 This is free software; you can redistribute it and/or modify it under
43 the same terms as the Perl 5 programming language system itself.
44
45
46
47perl v5.30.1 2020-01-V3a0lidation::Class::Directive::UUID(3)