ports/p5-Mail-RFC822-Address does not work as expected/described
Matthias Apitz
guru at unixarea.de
Mon Jan 4 12:49:43 UTC 2016
Hello,
I installed from the ports the port p5-Mail-RFC822-Address to verify
mail addrs against RFC822; the example code provided by the author is:
#!/usr/local/bin/perl
use Mail::RFC822::Address qw(valid validlist);
if (valid("pdw at ex-parrot.com")) {
print "That's a valid address\n";
}
if (validlist("pdw at ex-parrot.com, other at elsewhere.com")) {
print "That's a valid list of addresses\n";
}
But I can only manage to get this working when doing the test as
if (valid("pdw at ex-parrot.com") == true) {
...
Why is this? I'm by no means a Perl expert :-)
Thx
matthias
--
Matthias Apitz, ✉ guru at unixarea.de, 🌐 http://www.unixarea.de/ ☎ +49-176-38902045
More information about the freebsd-questions
mailing list