Valida...::Email(3pm)

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

πŸ’Œ Validation::Class::Directive::Email β€” the email directive for Validation Class field definitions, bestie πŸ’…

okay so real talk: this is the Validation::Class::Directive::Email page, and it's here to check whether your email addresses are even real or just vibes. it's a core validation class field directive. let's get into it πŸ¦‹


✨ VERSION ✨

this is version 7.900059. yes, that many digits. slay πŸ’–


🌸 SYNOPSIS 🌸

here's how you actually use it, no cap:

use Validation::Class::Simple;

my $rules = Validation::Class::Simple->new(
    fields => {
        user_email => {
            email => 1
        }
    }
);

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

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

so you make your $rules object, you tell it user_email has email => 1 turned on, you add your params with $rules->params->add($parameters), and then you validate. if it comes back false you handle the failures, because we do not ignore our failures in this house 🫢


πŸ’– DESCRIPTION πŸ’–

Validation::Class::Directive::Email is a core validation class field directive that checks the validity of email addresses specified by the associated parameters. it's giving "does this look like an email" energy and honestly? iconic.

⚠️ okay bestie, important caveat, listen up: the email directive does not perform a host lookup, and it does not conform to the RFC specification. so it is not out here doing DNS detective work or reading RFCs for fun. it's just a vibe check, fr fr.

if you want more sophisticated email validation, please use custom validation with Email::Valid or similar. iykyk πŸ’…


πŸ‘‘ AUTHOR πŸ‘‘

Al Newkirk <anewkirk@ana.io> β€” the main character who wrote this πŸ’œ


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.

periodt. go forth and validate ✨


and that's the whole page, bestie πŸ“ β€” this was Valida...::Email(3pm) from the User Contributed Perl Documentation, generated with perl v5.36.0 and dated 2023-06-11. take care of her, she's doing her best πŸ’–πŸ§šπŸŒˆ

πŸ“¦ where this page comes from