Valida...ve::SSN(3pm)

πŸ“¦
version 7.900059 Β· 7 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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 πŸ«‘πŸ’œ


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