Valida...xLength(3pm)
hey bestie π welcome to Valida...xLength(3pm) β yeah that's the manual name, it's giving very truncated but we move. This is User Contributed Perl Documentation, and we're about to talk about the MaxLength directive like it's the main character.
β¨ NAME β¨
Validation::Class::Directive::MaxLength β the MaxLength directive for Validation Class field definitions π
πΈ VERSION πΈ
version 7.900059 β periodt, that's the one.
π¦ SYNOPSIS π¦
use Validation::Class::Simple;
my $rules = Validation::Class::Simple->new(
fields => {
password => {
max_length => 50
}
}
);
# set parameters to be validated
$rules->params->add($parameters);
# validate
unless ($rules->validate) {
# handle the failures
}
π DESCRIPTION π
okay so Validation::Class::Directive::MaxLength is a core validation class field directive π and its whole job? It validates the length of all characters in the associated parameters. Every single one. No cap. It's literally the vibe check for "is this string too long?" and if it is, bestie, the validation says no. π
π AUTHOR π
Al Newkirk <anewkirk@ana.io> β iconic, we stan π«Ά
π 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. π
and that's the whole page, bestie! π this was perl v5.36.0, dated 2023-06-11, and yes the manual is still called Valida...xLength(3pm) β mwah π slay, bye! β¨
π¦ 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