Valida...stname(3pm)

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

πŸ’– 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 🫢


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