Valida...ymbols(3pm)

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

πŸŽ€ NAME πŸŽ€

Validation::Class::Directive::MinSymbols β€” the MinSymbols Directive for Validation Class Field Definitions. she's a whole queen and she counts your symbols πŸ’…

(also this page lives in the User Contributed Perl Documentation section, so like, it's a 3pm kinda situation, iykyk πŸ¦‹)


✨ VERSION ✨

version 7.900059 β€” yes bestie, that's the real number, no cap πŸ’–


🌸 SYNOPSIS 🌸

okay so here's the whole vibe, copy it exactly bestie:

use Validation::Class::Simple;

my $rules = Validation::Class::Simple->new(
    fields => {
        password => {
            min_symbols => 1
        }
    }
);

# set parameters to be validated
$rules->params->add($parameters);

# validate
unless ($rules->validate) {
    # handle the failures
}

πŸ’– DESCRIPTION πŸ’–

Validation::Class::Directive::MinSymbols is a core validation class field directive, and her whole job β€” her entire main character era β€” is validating the length of non-alphanumeric characters in the associated parameters. so like, the symbols. the little sparkly extras. the punctuation and the vibes πŸŽ€βœ¨

she's a core directive too, which means she's built in, she's not a guest, she's on the guest list fr fr πŸ‘‘


🫢 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. so like, go off, remix it, share it, slay πŸ’…πŸŒˆ


lowkey a tiny page but highkey it does exactly what it says on the tin. min_symbols: the symbol count gatekeeper, periodt πŸ’€βœ¨

and that's the whole thing bestie!! this gorgeous little page is from perl v5.36.0, dated 2023-06-11, and it's the Valida...ymbols(3pm) page in all her abbreviated glory πŸ¦‹πŸ’œ byeee πŸŽ€

πŸ“¦ where this page comes from