NAME
RFC::RFC822::Address -- RFC 822 style address validation.
SYNOPSIS
use RFC::RFC822::Address qw /valid/;
print "Valid\n" if valid 'abigail@example.com';
DESCRIPTION
This module checks strings to see whether they are have the valid syntax, as defined in RFC 822 [1]. One subroutine, valid
, can be imported, which takes a single string as argument. If the string is valid according to RFC 822, a true value is returned, else a false value is returned.
REFERENCES
- [1]
-
David H. Crocker (revisor): "STANDARD FOR THE FORMAT OF ARPA INTERNET TEXT MESSAGES". RFC 822. 13 August 1982.
CAVEATS and BUGS
This module sets the variable $Parse::RecDescent::skip
. This will influence all other Parse::RecDescent
parsers. And this parser will break if you set $Parse::RecDescent::skip
to another value. It doesn't look that it is possible to set an alternative skip value for each parser, other than setting the skip value on each production.
Example A.1.5 in RFC 822 is wrong. It should use "Galloping Gourmet"@ANT.Down-Under.
This module should have been named RFC::822::Address
. However, perl 5.004 doesn't like the 822
part, and at the time of this writing MacPerl is still at 5.004.
This module is slow.
REVISION HISTORY
$Log: Address.pm,v $
Revision 1.4 1999/10/04 09:12:58 abigail
Fixed typo in pod.
Revision 1.3 1999/10/04 09:07:23 abigail
Parsing of comments.
Completed (?) test suite. Added --debug option to test.pl, to print
what was being matched, and what the result of validation was.
Changed package name to RFC::RFC822::Address, to cope for 5.004 users;
MacPerl is still on 5.004.
Revision 1.2 1999/10/02 10:08:48 abigail
Grammar is now aware of the whitespace rules.
Comment rules still have to be implemented.
used h2xs.
Created initial test.pl file.
Revision 1.1 1999/10/01 08:50:13 abigail
Initial revision
AUTHOR
This package was written by Abigail, abigail@delanet.com.
COPYRIGHT and LICENSE
This package is copyright 1999 by Abigail.
This program is free and open software. You may use, copy, modify, distribute and sell this program (and any modified variants) in any way you wish, provided you do not restrict others to do the same.