Valida...quired(3pm)

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

✨ NAME ✨

Validation::Class::Directive::Required β€” the Required Directive for Validation Class Field Definitions, bestie πŸ’– (it lives in the User Contributed Perl Documentation, section 3pm, iykyk)


🌸 VERSION 🌸

version 7.900059 β€” she's current, she's iconic, no cap πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

okay so here's the whole vibe in code:

use Validation::Class::Simple;

my $rules = Validation::Class::Simple->new(
    fields => {
        search_query => {
            required => 1
        }
    }
);

# set parameters to be validated
$rules->params->add($parameters);

# validate
unless ($rules->validate) {
    # handle the failures
}

like… set it up, add your params, run the validation, and if it doesn't validate you go handle the failures. simple as that fr fr πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

Validation::Class::Directive::Required is a core validation class field directive that handles validation of supply and demand. that's literally the whole job and she does it flawlessly 🌈✨


πŸ’œ AUTHOR πŸ’œ

Al Newkirk <anewkirk@ana.io> β€” the mastermind, the moment, the main character 🫢


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. free as in freedom bestie, go wild πŸ¦‹


and that's the page!! πŸ’– written for perl v5.36.0, dated 2023-06-11, from the User Contributed Perl Documentation, section 3pm. mwah, slay, periodt βœ¨πŸ’…πŸŽ€

πŸ“¦ where this page comes from