Valida...MaxSum(3pm)

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

πŸ’– 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. 🫢


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