Subject: | 'foo' valid in new Email::Address but not other RFC822 libs |
Data::Validate::Email fails to build when the newest version of
Email::Address is installed. Might be better to depend on
Mail::RFC822::Address instead. Thanks. --mark--
hedges@vm4:~$ ./lame.pl
RFC::RFC822::Address - not valid
Mail::RFC822::Address - not valid
Email::Address::mailbox - valid
hedges@vm4:~$ cat lame.pl
#!/usr/bin/perl
use strict;
use warnings FATAL => 'all';
use English '-no_match_vars';
require RFC::RFC822::Address;
require Mail::RFC822::Address;
use Email::Address;
my $str = 'foo';
print RFC::RFC822::Address::valid($str)
? "RFC::RFC822::Address - valid\n"
: "RFC::RFC822::Address - not valid\n";
print Mail::RFC822::Address::valid($str)
? "Mail::RFC822::Address - valid\n"
: "Mail::RFC822::Address - not valid\n";
print $str =~ /^$Email::Address::mailbox$/
? "Email::Address::mailbox - valid\n"
: "Email::Address::mailbox - not valid\n";