Valida...::Label(3pm)
π Valida...::Label(3pm) π
ok bestie, welcome to the Validation::Class::Directive::Label page β it's part of the User Contributed Perl Documentation, section 3pm, so you already know it's giving β¨docsβ¨ energy.
πΈ NAME πΈ
Validation::Class::Directive::Label β the Label Directive for Validation Class Field Definitions. yes that's the whole name, it's long, we love her anyway π
β VERSION β
version 7.900059 β that's the number, no notes, don't @ me π«Ά
π SYNOPSIS π
ok so this is how you actually use her:
use Validation::Class::Simple;
my $rules = Validation::Class::Simple->new(
fields => {
user_ssn => {
label => 'User Social Security Number'
}
}
);
# set parameters to be validated
$rules->params->add($parameters);
# validate
unless ($rules->validate) {
# handle the failures
}
see? you make your $rules, you give a field (user_ssn) a label, you add your $parameters to $rules->params, and then you validate. if validate comes back false, that's your cue to go # handle the failures π
π¦ DESCRIPTION π¦
so Validation::Class::Directive::Label is a core validation class field directive β one of the main-character directives, not some side character. and what does she do? she holds a user-friendly string (name) that represents the field she's attached to. that's it. that's the job. she makes your field look cute and readable instead of all user_ssn-coded. literally the glow-up directive π
π AUTHOR π
Al Newkirk <anewkirk@ana.io> β the icon, the legend, the one who wrote her π«Ά
π 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 wild, but read the Perl 5 terms first bestie, iykyk π
and that's the whole page!! sign-off time: this was perl v5.36.0, dated 2023-06-11, and yeah the footer also says Valida...::Label(3pm) because it's the same page, slay β no cap, that's everything, go label your fields π
π¦ 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