Valida...MinSum(3pm)

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

✨ 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 πŸ™


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