Valida...ymbols(3pm)
๐
Validation::Class::Directive::MaxSymbols โ the 3pm girlies' guide
okay so bestie, welcome to the User Contributed Perl Documentation corner of the internet, where we're talking about Validation::Class::Directive::MaxSymbols ๐
โจ NAME โจ
Validation::Class::Directive::MaxSymbols โ it's the MaxSymbols Directive for Validation Class Field Definitions, and it's here to count your symbols so you don't have to ๐งฎโจ
๐ธ VERSION ๐ธ
version 7.900059 โ yes she's got a version, she's got receipts, she's official ๐
๐ฆ SYNOPSIS ๐ฆ
here's the whole vibe in code, no cap:
use Validation::Class::Simple;
my $rules = Validation::Class::Simple->new(
fields => {
password => {
max_symbols => 30
}
}
);
# set parameters to be validated
$rules->params->add($parameters);
# validate
unless ($rules->validate) {
# handle the failures
}
so you spin up your $rules, you tell the password field it's got a max_symbols situation going on, you add your $parameters to $rules->params, and then you hit $rules->validate. if it comes back false, you're in the unless block handling the failures ๐ญ it's giving very much "the vibes were off, deal with it."
๐ DESCRIPTION ๐
okay so here's the tea: Validation::Class::Directive::MaxSymbols is a core validation class field directive ๐
what does she do? she validates the length of non-alphanumeric characters in the parameters that are associated with her. that's it, that's the whole job. she counts the symbols โ the little non-alphanumeric gremlins ๐ โ and she checks whether that count is within the limit you set. main character energy, honestly.
๐ AUTHOR ๐
Al Newkirk <anewkirk@ana.io> โ the icon, the legend, the one 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. so like, go off, remix it, redistribute it, just respect the terms, periodt ๐
๐ SEE YOU LATER, BESTIE ๐
that's the whole page fr fr ๐ this beauty ships as part of perl v5.36.0, and the date on this particular glow-up is 2023-06-11 โญ go forth and validate those symbols, you absolute queen ๐โจ
๐ฆ 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