07 Nov 2009 16:09:25 UTC
- Distribution: RFC-RFC822-Address
- Module version: 2009110702
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (771 / 4 / 0)
- KwaliteeBus factor: 1
- 95.65% Coverage
- License: mit
- Perl: v5.6.0
- Download (6.5KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
RFC::RFC822::Address - RFC 822 style address validation.
use RFC::RFC822::Address qw /valid/; print "Valid\n" if valid 'firstname.lastname@example.org';
This module checks strings to see whether they are have the valid syntax, as defined in RFC 822 . 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.
David H. Crocker (revisor): "STANDARD FOR THE FORMAT OF ARPA INTERNET TEXT MESSAGES". RFC 822. 13 August 1982.
This module sets the variable
$Parse::RecDescent::skip. This will influence all other
Parse::RecDescentparsers. And this parser will break if you set
$Parse::RecDescent::skipto 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
822part, and at the time of this writing MacPerl is still at 5.004.
This module is slow.
The current sources of this module are found on github, git://github.com/Abigail/rfc--rfc822--address.git.
This program is copyright 1999, 2000, 2009 by Abigail.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Module Install Instructions
To install RFC::RFC822::Address, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install RFC::RFC822::Address
For more information on module installation, please visit the detailed CPAN module installation guide.
|s||Focus search bar|
|?||Bring up this help dialog|
|g p||Go to pull requests|
|g i||go to github issues (only if github is preferred repository)|
|g a||Go to author|
|g c||Go to changes|
|g i||Go to issues|
|g d||Go to dist|
|g r||Go to repository/SCM|
|g s||Go to source|
|g b||Go to file browse|