Valida...xAlpha(3pm)

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

✨ NAME ✨

Validation::Class::Directive::MaxAlpha β€” the MaxAlpha directive for Validation Class field definitions, and yes bestie that's literally the whole job description πŸ’…


πŸŽ€ VERSION πŸŽ€

version 7.900059 β€” fresh, iconic, no notes 🫢


🌸 SYNOPSIS 🌸

okay so here's the vibe, copy-paste it exactly, don't be creative:

use Validation::Class::Simple;

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

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

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

so you build your rules, you drop your $parameters into params->add(...), and then you call $rules->validate β€” and if it comes back false, that's your cue to deal with the failures. no cap πŸ¦‹


πŸ’– DESCRIPTION πŸ’–

Validation::Class::Directive::MaxAlpha is a core validation class field directive, and what it does is validate the length of alphabetic characters in the parameters it's attached to. that's it, that's the whole girlboss. it checks the alpha-character count, periodt ✨


πŸ‘‘ AUTHOR πŸ‘‘

Al Newkirk <anewkirk@ana.io> β€” thank you for your service, king 🌈


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 page, bestie! πŸŽ€ this was Validation::Class::Directive::MaxAlpha, version 7.900059, documented with perl v5.36.0 and dated 2023-06-11. go forth and validate your alpha lengths responsibly, ily 🫢✨

πŸ“¦ where this page comes from