Valida...quired(3pm)
β¨ 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 π«Ά
π 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. 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
- 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