Valida...xLength(3pm)

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

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 🫢


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