Email:...::Loose(3pm)
π 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::ValidMail::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 πβ¨π¦
π¦ where this page comes from
- debian bookworm: libemail-valid-loose-perl 0.05-5
- debian trixie: libemail-valid-loose-perl 0.05-5
- ubuntu noble: libemail-valid-loose-perl 0.05-5
- ubuntu resolute: libemail-valid-loose-perl 0.05-5
- ubuntu stonking: libemail-valid-loose-perl 0.05-5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms