Email:...::Loose(3pm)

πŸ“¦
version 0.05 Β· 2 versions
  • 0.05 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.05 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

Email::Valid::Loose β€” it's literally Email::Valid but it lets you put a dot before the at-mark. yes bestie, that's the whole vibe πŸŽ€


✨ SYNOPSIS ✨

use Email::Valid::Loose;

# same as Email::Valid
my $addr     = 'read_rfc822.@docomo.ne.jp';
my $is_valid = Email::Valid::Loose->address($addr);

okay so it's the exact same call shape as Email::Valid, no new syntax to learn, we love a plug-and-play moment πŸ’…


🌸 DESCRIPTION 🌸

So Email::Valid::Loose is a subclass of Email::Valid, and its whole thing β€” its entire main character energy β€” is that it allows a . (dot) before the @ (at-mark).

Now here's the tea: per RFC822 that's invalid. Straight up not allowed. 🚫

But and this is the important part β€” it's commonly used in some mobile phone addresses in Japan, like docomo.ne.jp or jp-t.ne.jp. So the real world said "actually we're doing it anyway" and this module said "bet, I got you." 🫢


πŸ¦‹ IMPLEMENTATION πŸ¦‹

Under the hood, this module overrides the "rfc822" method in Email::Valid. That's it, that's the move. No cap. πŸ”₯


πŸ‘‘ AUTHOR πŸ‘‘

Tatsuhiko Miyagawa <miyagawa@bulknews.net> β€” absolute icon, respectfully πŸ™Œ

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. slay, open source behavior πŸ’–


🌈 SEE ALSO 🌈

  • Email::Valid
  • Mail::Address::MobileJp

go read those too, iykyk ⭐


okay that's the whole page bestie, thanks for coming to my ted talk, mwah πŸ’œ

This was perl v5.34.0 energy, dated 2022-06-13, and you can find it living under Email:...::Loose(3pm). bye pookie, go validate some emails πŸŽ€βœ¨πŸ¦‹