HTML::...::Email(3pm)
π NAME
okay so bestie, this is HTML::FormHandler::Field::Email β it validates email using Email::Valid. that's the whole vibe. it's the field that checks your email actually looks like an email π
(this is from the HTML::...::Email(3pm) page, user-contributed Perl docs, iykyk π«Ά)
β¨ VERSION β¨
version 0.40068 β that's the one, that's the version, no cap π
π¦ DESCRIPTION π¦
so what does it actually do? it validates that the input looks like an email address, using Email::Valid. icon behavior honestly.
the widget type is 'text'. periodt.
but wait β plot twist π«£ if the form has the'is_html5'flag active, it will render<input type="email" ... />instead oftype="text". glow up fr fr.
this field also has an 'email_valid_params' attribute β¨ and that attribute accepts a hash reference of extra values. those extra values get passed to "address" in Email::Valid when it's validating email addresses. like it's handing Email::Valid a little snack pack of extra config, we love to see it π
and if you want to preserve the case of the email address (so Bestie@Example.com stays Bestie@Example.com and doesn't get lowercased on you π), just set the 'preserve_case' attribute. that's it. that's the whole trick π₯
π§ DEPENDENCIES π§
Email::Validβ the main character of this whole operation π
πΈ AUTHOR πΈ
FormHandler Contributors β see HTML::FormHandler for the full squad π«Ά
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2017 by Gerda Shank. π
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay, literally free software.
and that's the page!! π brought to you byperl v5.34.0, dated2022-03-25β mwah, go forth and validate those emails bestie πβ¨
π¦ where this page comes from
- debian bookworm: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms