Valida...Between(3pm)

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

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


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