Valida...ltiples(3pm)
π Valida...ltiples(3pm) β Validation::Class::Directive::Multiples π
okay bestie, gather round, because we're about to talk about the Multiples directive from Validation::Class::Directive::Multiples and honestly? it's giving "tiny module, big responsibility" π
β¨ NAME β¨
Validation::Class::Directive::Multiples β the Multiples Directive for Validation Class Field Definitions π
πΈ VERSION πΈ
version 7.900059 β yes ma'am, that's the one, no cap π
π¦ SYNOPSIS π¦
okay so here's the whole vibe, copy it exactly, don't be creative with it bestie:
use Validation::Class::Simple;
my $rules = Validation::Class::Simple->new(
fields => {
user_options => {
multiples => 1
}
}
);
# set parameters to be validated
$rules->params->add($parameters);
# validate
unless ($rules->validate) {
# handle the failures
}
literally that's it. that's the whole glow-up arc π
π DESCRIPTION π
so, Validation::Class::Directive::Multiples is a core validation class field directive, and what it does is check whether the parameters it's attached to are allowed to hold a multi-value β which is to say, an array of strings π
that's the whole job. one job. and it ate. π
π AUTHOR π
Al Newkirk <anewkirk@ana.io> β the icon, the moment, the legend π«Ά
π 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 like, go forth and remix, bestie, it's legally a slay β¨
lowkey a reminder that "free software" here means those exact Perl 5 terms, not "do whatever, no rules" β keep the license vibes intact, okay? π
mwah π and that's the page, fr fr β this one's from perl v5.36.0, dated 2023-06-11, so if you're reading this in the group chat later, just know the lore checks out π¦β
π¦ 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