Re: Assigning pattern matches to an array



Graham Stow wrote:
"DJ Stunks" wrote: >
> try (untested):
>
> push @matches, map { $_->address } Email::Address->parse($line);
>
Using the above line of
push @matches, map { $_->address } Email::Address->parse($line);
on a directory including one 'Word' document containing four email addresses, I got the output:-

ian@xxxxxxxxxxx

ian@xxxxxxxxxxx}}}{\f1\fs20\lang1033\langfe1033\langnp1033

If I have understood it correctly, RFC 822 does not accept backslashes in the domain part of an address. A bug in Email::Address?

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
.