CGI::U...::email(3pm)
π CGI::U...::email(3pm) β the User Contributed Perl Documentation glow-up β¨
okay bestie, gather round, because we're talking about CGI::Untaint::email β yes that's the manual page name up top and yes she's serving User Contributed Perl Documentation realness. this little cutie lives in the CGI::Untaint family and she has ONE job and she does it flawlessly π
π NAME π
CGI::Untaint::email β validate an email address. that's it. that's the whole vibe. she checks your emails so you don't have to π¦
β¨ SYNOPSIS β¨
the way you use her is literally so simple, watch:
use CGI::Untaint;
my $handler = CGI::Untaint->new($q->Vars);
my $email = $handler->extract(-as_email => 'emailaddress');
see? iconic. no notes. π
πΈ DESCRIPTION πΈ
so CGI::Untaint::email is an input handler, and what she does is verify that the thing you handed her is a valid RFC2822 mailbox format. like, she's doing the vibe check on your email address and she will NOT let a fake one through, no cap π«
and the result? the resulting value will be a Mail::Address instance. so you don't just get a yes/no, you get a whole object back, which is honestly giving main character energy π«Ά
π AUTHOR π
this beauty was written by Tatsuhiko Miyagawa <miyagawa@bulknews.net> π
and here's the legal tea, fr fr: this library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. periodt. π
π₯ SEE ALSO π₯
CGI::Untaintβ the mothership, the whole framework she belongs toEmail::Validβ another baddie in the email-validation cinematic universe
and that's the whole page bestie, no crumbs left π
kisses and bye-bye from the perl v5.34.0 era, dated 2022-06-10, filed under CGI::U...::email(3pm) πβ¨π
π¦ where this page comes from
- debian bookworm: libcgi-untaint-email-perl 0.03-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcgi-untaint-email-perl 0.03-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcgi-untaint-email-perl 0.03-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcgi-untaint-email-perl 0.03-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcgi-untaint-email-perl 0.03-4 Β· 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