Valida...::State(3pm)
π NAME π
Validation::Class::Directive::State β the State Directive for Validation Class Field Definitions, bestie. That's the whole vibe. β¨
πΈ VERSION πΈ
version 7.900059 β yes, she's got a version number and she's proud of it π
β¨ SYNOPSIS β¨
okay so here's how you actually use her:
use Validation::Class::Simple;
my $rules = Validation::Class::Simple->new(
fields => {
address_state => {
state => 1
}
}
);
# set parameters to be validated
$rules->params->add($parameters);
# validate
unless ($rules->validate) {
# handle the failures
}
like, you set up your fields, you add your params, you run validate, and if it comes back false you deal with the fallout. simple as that, no cap π«Ά
π¦ DESCRIPTION π¦
okay so listen. Validation::Class::Directive::State is a core validation class field directive that handles state validation for states in the USA. πΊπΈ iconic behavior honestly.
the way it works is: states get validated against a list of state names β both the abbreviated ones and the long ones β and the matching is case-insensitive. so you don't have to stress about capitalization at all, she's not gonna be picky like that. π
for example: ny, NY, New York, and new york will all validate. every single one. slay. π₯
π AUTHOR π
Al Newkirk <anewkirk@ana.io> β the main character who wrote this. π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2011 by Al Newkirk.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
so yeah β free software, same terms as Perl 5 itself. go forth and redistribute responsibly bestie π«‘
and that's the whole page!! this one came from perl v5.36.0, dated 2023-06-11, and honestly? a little legend. mwah π β¨
π¦ where this page comes from
- debian trixie: libvalidation-class-perl 7.900059-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libvalidation-class-perl 7.900059-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libvalidation-class-perl 7.900059-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libvalidation-class-perl 7.900059-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms