Valida...::Email(3pm)
π 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 π
π 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.
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
- 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