Valida...MinSum(3pm)
β¨ Valida...MinSum(3pm) β¨
ok so bestie, we're talking about the Valida...MinSum page from the User Contributed Perl Documentation section of the manual, third section of the perl manpages (that's the 3pm part, iykyk). Let's get into it π
πΈ NAME πΈ
Validation::Class::Directive::MinSum β the MinSum Directive for Validation Class Field Definitions. that's the whole glow-up, periodt π
π VERSION π
version 7.900059 β yes it's giving very specific, very slay, very "we know exactly which build you're on" β¨
π¦ SYNOPSIS π¦
ok so here's the vibe, literally just copy-paste energy:
use Validation::Class::Simple;
my $rules = Validation::Class::Simple->new(
fields => {
invoice_total => {
min_sum => 1
}
}
);
# set parameters to be validated
$rules->params->add($parameters);
# validate
unless ($rules->validate) {
# handle the failures
}
like. it's so clean. the way that min_sum => 1 just sits there in the field definition doing its little job π
π DESCRIPTION π
so Validation::Class::Directive::MinSum is a core validation class field directive β that means it ships with the whole Validation::Class situation, no extra downloads, no side quests π β and what it does is validate the numeric value of the associated parameters. that's it. that's the whole directive. she's a specialist, not a generalist, and honestly? iconic π«Ά
π AUTHOR π
Al Newkirk <anewkirk@ana.io> β the mastermind, the main character, the one who wrote all this down for us π
π 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 yes bestie, you can remix, redistribute, do your little thing with it β just keep it under the same Perl 5 terms, no cap π
and that's the page!! π this doc was generated for perl v5.36.0 and dated 2023-06-11, so big thank you to the perl toolchain for stamping that on the bottom of every single one of these files, love that for us β¨ bye bestie, go validate something π
π¦ 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