On 07 Jan 2002 14:12:15 -0800 William R Ward <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] (Perl Authors Upload Server) writes: > > Email::Valid::Loose is a subclass of Email::Valid, which allows . > > (dot) before @ (at-mark). It is invalid in RFC822, but is commonly > > used in some of mobile phone addresses in Japan (like docomo.ne.jp > > or jp-t.ne.jp). > > Have you talked to the author of Email::Valid about making this an > optional setting in that module, rather than creating a new one? Nope. * Email::Valid validates RFC822 correctness. Allowing .@ by options would change its core aim, thus be confusing, and make maintainance of the module more difficult. We can safely maintain these modules by subclassing. * See ::Loose implementation. Because Email::Valid is Object-Oriented, we can easily override its core function by simple piece of code. That's exatly what OO is good for ;) -- Tatsuhiko Miyagawa <[EMAIL PROTECTED]>