Valida...Between(3pm)
π Validation::Class::Directive::Between β the Between Directive for Validation Class Field Definitions π
okay bestie, so this is a page from the User Contributed Perl Documentation for Validation::Class::Directive::Between (manual section 3pm). Sit down, hydrate, and let's get into it π«Ά
β¨ VERSION β¨
version 7.900059 β yes it's giving very specific, and we love that for it π
πΈ SYNOPSIS πΈ
like, here's the vibe in code form:
use Validation::Class::Simple;
my $rules = Validation::Class::Simple->new(
fields => {
person_age => {
between => '18-95'
}
}
);
# set parameters to be validated
$rules->params->add($parameters);
# validate
unless ($rules->validate) {
# handle the failures
}
π¦ DESCRIPTION π¦
Validation::Class::Directive::Between is a core validation class field directive, and what it does β its whole little main character job β is give you the ability to validate the numeric range of the associated parameters. periodt π―
- alternative argument: an-array-of-numbers
bestie, this directive can be passed a single value or an array of values, no cap:
fields => {
person_age => {
between => [18, 95]
}
}
π AUTHOR π
Al Newkirk <anewkirk@ana.io> β iconic behavior, honestly π
π 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. (yes bestie, free software, we stan π)
okay that's the whole page, mwah π β this was perl v5.36.0, dated 2023-06-11, and the header/footer situation is Valida...Between(3pm) on both ends, iykyk. go validate those numeric ranges, you absolute legend π§π
π¦ 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