in reply to Getting email from fields
Mail::Address maybe, probably. :P
use Mail::Address; my $raw = 'My Name <email@example.com>'; my @addresses = Mail::Address->parse($raw); print $_->address, $/ for @addresses;
Update: posted before I saw haukex's answer. I am not sure which of Mail::Address and Email::Address is a better choice or if they are equivalent. The former was already installed on my box. :P
|
|---|