Valida...dation(3pm)
β¨ NAME β¨
Validation::Class::Directive::Validation β bestie, it's the Validation Directive for Validation Class Field Definitions π
(yes the manual page is called Valida...dation(3pm) and yes that's iconic of it)
πΈ VERSION πΈ
version 7.900059 β no cap, that's the one π«Ά
π¦ SYNOPSIS π¦
okay so here's the vibe, literally copy-paste coded:
use Validation::Class::Simple;
my $rules = Validation::Class::Simple->new(
fields => {
example_data => {
validation => sub {
my ($self, $proto, $field, $params) = @_;
# user-defined validation should return true/false
}
}
}
);
# set parameters to be validated
$rules->params->add($parameters);
# validate
unless ($rules->validate) {
# handle the failures
}
π DESCRIPTION π
Validation::Class::Directive::Validation is a core validation class field directive whose whole job is running user-defined validation routines. The way that it always takes a sub-routine and should return true or false? That's the moment. periodt. πβ¨
π AUTHOR π
Al Newkirk <anewkirk@ana.io> β the main character 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. slay, free software fr fr π
and that's the whole page bestie!! π§ this lil doc came from perl v5.36.0, dated 2023-06-11, and the manual name is Valida...dation(3pm) in case the vibe check required it π go validate something, you got this π
β¨
π¦ 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