Valida...ve::SSN(3pm)
β¨ NAME β¨
so like, this is Validation::Class::Directive::SSN β the SSN Directive for Validation Class Field Definitions π
and yes bestie, we're in Valida...ve::SSN(3pm) territory, tucked inside the User Contributed Perl Documentation π
πΈ VERSION πΈ
version 7.900059 β that's the one, no cap π«Ά
π¦ SYNOPSIS π¦
okay so here's the whole vibe, copy it exactly, don't freestyle:
use Validation::Class::Simple;
my $rules = Validation::Class::Simple->new(
fields => {
user_ssn => {
ssn => 1
}
}
);
# set parameters to be validated
$rules->params->add($parameters);
# validate
unless ($rules->validate) {
# handle the failures
}
like, you set up your fields, you drop ssn => 1 on the field you care about, you add your $parameters to params, and then you hit $rules->validate β and if it comes back false, that's your cue to handle the failures π
π DESCRIPTION π
Validation::Class::Directive::SSN is a core validation class field directive and its whole job β its entire main character moment β is handling validation of social security numbers in the USA πΊπΈβ¨
that's it. that's the gig. it validates SSNs. iconic behavior honestly π
π AUTHOR π
Al Newkirk <anewkirk@ana.io> β the legend who made this happen π«‘π
π 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. slay, legally speaking π
fr fr, all the good stuff is above β nothing skipped, nothing hidden, we keep it π―
and that's a wrap, bestie π this was Valida...ve::SSN(3pm) from the User Contributed Perl Documentation, running on perl v5.36.0, dated 2023-06-11 β mwah, go validate something pretty β¨π
π¦ 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