Valida...nLength(3pm)
β¨ NAME β¨
okay so bestie, welcome to Validation::Class::Directive::MinLength π β it's the MinLength Directive for Validation Class Field Definitions, and yes that's a whole mouthful but it's literally just the little rule that checks how long your stuff is π
πΈ VERSION πΈ
version 7.900059 β¨ (iconic number, no notes)
π¦ SYNOPSIS π¦
here's the vibe, copy-paste ready fr fr π
use Validation::Class::Simple;
my $rules = Validation::Class::Simple->new(
fields => {
password => {
min_length => 5
}
}
);
then you gotta feed it the actual params:
# set parameters to be validated
$rules->params->add($parameters);
and then... the moment of truth π«Ά
# validate
unless ($rules->validate) {
# handle the failures
}
like if it doesn't validate, you go handle the failures, that's the deal π
π DESCRIPTION π
Validation::Class::Directive::MinLength is a core validation class field directive, and what it does is validate the length of all characters in the parameters it's associated with π
so like. every single character counts. the whole thing. no skips. that's the job π
π AUTHOR π
Al Newkirk <anewkirk@ana.io> β the icon, the legend, the main character who wrote this π
β 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. πͺβ¨
ngl that's the whole page bestie, short and sweet and absolutely ate ππ
so yeah, that's Valida...nLength(3pm) from the User Contributed Perl Documentation β perl v5.36.0, dated 2023-06-11 πΈ mwah, go validate something, ily π«Άπ
π¦ 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