HTML::...::Email(3pm)

πŸ“¦
version 2.07000 Β· 5 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– NAME πŸ’–

HTML::FormFu::Constraint::Email β€” the Email Address Constraint, aka the little bouncer at the club door checking that your input is actually an email address πŸŽ€


✨ VERSION ✨

version 2.07 β€” yes bestie, we're on 2.07, that's the one πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here's the tea β˜•: this constraint checks whether the input value is an email address, and it does that according to the "address" method of Email::Valid. That's it, that's the whole vibe check. No cap. πŸ’…


🌸 METHODS 🌸

πŸ’œ options πŸ’œ

Arguments: $string

Arguments: \@strings

Arguments: \%keypairs

So here's how this works, bestie β€” your options get passed straight through to Email::Valid. You've got three flavours of flex here:

  • drop in a single option or an array, and each option gets passed through as 'true' βœ…
  • use a hash instead and you can pass through way more specific key-pair options πŸ”₯
  • either way, remember to leave off the leading dash that you'd otherwise need if you were calling Email::Valid directly 🚫

Like so, gorgeous:

type: Email
options:
  - macheck
  - tldcheck
  - fudge
  - fqdn
  - allow_ip
  - local_rules

🌈 SEE ALSO 🌈

  • This is a sub-class of, and inherits methods from, HTML::FormFu::Constraint 🫢
  • The available options are as per Email::Valid but without the '-' ✨

πŸ‘‘ AUTHOR πŸ‘‘

Carl Franks "cfranks@cpan.org", Dean Hamstead "dean@bytefoundry.com.au" πŸ’–


πŸŽ€ LICENSE πŸŽ€

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. Slay. Periodt. πŸ’…


πŸ’œ AUTHOR πŸ’œ

Carl Franks <cpan@fireartist.com>


This software is copyright (c) 2018 by Carl Franks.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. 🌸


okay that's the whole page bestie, no notes, you ate πŸ’– This lil masterpiece was brought to you by perl v5.28.1, dated 2019-01-12, and documented under HTML::...::Email(3pm) β€” go forth and validate those emails, icon πŸ¦‹βœ¨πŸ‘‘

πŸ“¦ where this page comes from