I personally liked RFC::822::Address (see http://search.cpan.org/search?dist=RFC_RFC822_Address). Uses Parse::RecDescent and used the rules as spelled out exactly in RFC 822.
Cheers, -Andrew Andrew Stanley http://www.cs.uml.edu/~astanley/ On Fri, 8 Mar 2002, Chris Nandor wrote: > At 11:52 -0500 2002.03.08, James Linden Rose, III wrote: > >How does this do as a rough cut email validity test??? > > Not very well, for two reasons. > > First, email "validity" is not determined by how well-formed it is, but > also whether or not it exists, is replyable, etc. You are only checking > well-formedness. > > It may catch a certain large percentage, but will also surely fail on many > valid addresses. See the Email::Valid module, which should catch all > properly formed email addresses, and reject all improperly formed ones, > except for email addresses with nested comments. It essentially has a very > complex regex to determine if an email address conforms to the form > specified in RFC 822 (again, not including nested comments). > > -- > Chris Nandor [EMAIL PROTECTED] http://pudge.net/ > Open Source Development Network [EMAIL PROTECTED] http://osdn.com/ >
