The error you're getting originates from the _tokenise sub in Mail::Address, called from parse, which is called from address in Email::Valid (which is where line 232 is, at least in my copy).

As far as I can tell, it means that your addresses don't match the regexps near the end of the _tokenise sub. Why they would suddenly stop matching, I can only guess. It could be that the data in the file you're reading in changed slightly when copied between boxes. Extra newlines, or newline problems, perhaps? It could be that the regexps used by Mail::Address have changed, and you had an older version of the module installed on the old box. You could check the source of the two copies of Mail::Address on the two machines, and compare the regexps.

Hope that helps. Good luck.

bbfu
Black flowers blossom
Fearless on my breath


In reply to Re: Email::Valid::Loose failing on new box? by bbfu
in thread Email::Valid::Loose failing on new box? by neilwatson

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.