in reply to Re: Email Address Syntax Checker
in thread Email Address Syntax Checker

The only problem with those 2 modules is that they follow the exact RFC standard. Why is it a problem to follow standard? Because there are millions of email addresses out there that have a . before the @ (without the . being quoted), which is not RFC valid. I personally use Email::Valid::Loose, which contains all of the great features of Email::Valid yet doesn't break on my own email adderss.

Replies are listed 'Best First'.
dot before @ in address
by lachoy (Parson) on May 15, 2002 at 15:54 UTC

    You might want to check again:

    #!/usr/bin/perl use strict; use Email::Valid; use Mail::RFC822::Address; my $address = 'ryan.311@osu.edu'; print 'Email::Valid: ', ( Email::Valid->address( $address ) ? 'yes' : 'no' ), "\n"; print 'Mail::RFC822::Address: ', ( Mail::RFC822::Address::valid( $address ) ? 'yes' : 'no' ), "\n";

    Output:

    Email::Valid: yes Mail::RFC822::Address: yes

    Chris
    M-x auto-bs-mode