Re: Assigning pattern matches to an array
- From: Gunnar Hjalmarsson <noreply@xxxxxxxxx>
- Date: Sun, 31 Dec 2006 11:34:18 +0100
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
.
- References:
- Assigning pattern matches to an array
- From: Graham Stow
- Re: Assigning pattern matches to an array
- From: Uri Guttman
- Re: Assigning pattern matches to an array
- From: Graham Stow
- Re: Assigning pattern matches to an array
- From: DJ Stunks
- Re: Assigning pattern matches to an array
- From: Graham Stow
- Re: Assigning pattern matches to an array
- From: DJ Stunks
- Re: Assigning pattern matches to an array
- From: Graham Stow
- Assigning pattern matches to an array
- Prev by Date: Re: Assigning pattern matches to an array
- Next by Date: FAQ 5.15 Why do I sometimes get an "Argument list too long" when I use <*>?
- Previous by thread: Re: Assigning pattern matches to an array
- Next by thread: Re: Assigning pattern matches to an array
- Index(es):