Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jan 2016 13:49:26 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-questions@freebsd.org
Cc:        pdw@ex-parrot.com
Subject:   ports/p5-Mail-RFC822-Address does not work as expected/described
Message-ID:  <20160104124926.GA4417@c720-r285885-amd64>

Next in thread | Raw E-Mail | Index | Archive | Help

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@ex-parrot.com")) {
      print "That's a valid address\n";
  }

  if (validlist("pdw@ex-parrot.com, other@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@ex-parrot.com") == true) {
  ...

Why is this? I'm by no means a Perl expert :-)

Thx

	matthias



-- 
Matthias Apitz, ✉ guru@unixarea.de, 🌐 http://www.unixarea.de/  ☎ +49-176-38902045



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20160104124926.GA4417>