Valida...MaxSum(3pm)
π NAME π
Validation::Class::Directive::MaxSum β the MaxSum directive for Validation::Class field definitions, bestie. It lives in the 3pm perl manual section and it's here to keep your numbers from being too extra. π
β¨ VERSION β¨
version 7.900059 β yeah she's got a version number, she's official, she's got receipts. π
π¦ SYNOPSIS π¦
okay so literally just do this:
use Validation::Class::Simple;
my $rules = Validation::Class::Simple->new(
fields => {
invoice_total => {
max_sum => 10000
}
}
);
# set parameters to be validated
$rules->params->add($parameters);
# validate
unless ($rules->validate) {
# handle the failures
}
like... set up your rules, drop your $parameters in with $rules->params->add($parameters), then hit $rules->validate and if it comes back false you deal with the fallout. simple. iconic. no cap. π₯
πΈ DESCRIPTION πΈ
Validation::Class::Directive::MaxSum is a core validation class field directive β a real one, a main character β and what she does is validate the numeric value of the parameters she's attached to. that's it, that's the whole job, and she does it flawlessly. π
π AUTHOR π
Al Newkirk <anewkirk@ana.io> β the founder of the whole vibe fr fr. π«Ά
π 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 off, remix it, redistribute it, the whole thing is yours to play with, just keep it under the same Perl 5 terms. periodt. π
and that's the whole page, bestie!! this one came to you from perl v5.36.0 and it was dated 2023-06-11, and honestly? she ate. π mwah, 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