Valida...stname(3pm)
π Validation::Class::Directive::Hostname π
okay so bestie, quick vibe check: this page lives in the User Contributed Perl Documentation section, and it's the manpage for Validation::Class::Directive::Hostname β aka Valida...stname(3pm) if you're squinting at your terminal and the columns got cut off. she's a 3pm girlie. periodt. β¨
β¨ NAME β¨
Validation::Class::Directive::Hostname β the Hostname Directive for Validation Class Field Definitions π
πΈ VERSION πΈ
version 7.900059 β yes she's specific, we love a girl who knows her own number π
π¦ SYNOPSIS π¦
here's the whole look, copy it exactly, no cap:
use Validation::Class::Simple;
my $rules = Validation::Class::Simple->new(
fields => {
company_domain => {
hostname => 1
}
}
);
# set parameters to be validated
$rules->params->add($parameters);
# validate
unless ($rules->validate) {
# handle the failures
}
so like. you build your $rules, you set hostname => 1 on a field, you yeet your $parameters in with $rules->params->add($parameters), and then you validate. if $rules->validate comes back false, you're in the unless block handling the failures, and honestly? relatable. π
π DESCRIPTION π
Validation::Class::Directive::Hostname is a core validation class field directive β she's part of the main squad, not some plugin you had to go find β and what she does is handle the validation of server hostnames. that's it, that's the job, and she does it. π
π AUTHOR π
Al Newkirk <anewkirk@ana.io> β the icon 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.
fr fr, that's the whole license. free software, same terms as Perl 5 itself, go off. π
and that's the page, bestie!! sign-off time: this lil beauty is running on perl v5.36.0 and she was last touched on 2023-06-11 β so she's got that 3pm energy, Valida...stname(3pm) and all. slay, stay validated, mwah π
β¨πΈ
π¦ 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