Result:use Mail::Address; my $string = 'To: someone <someemail@somedomain.tld>, "someone else" < +someoneelse@some.other.domain>, info@somewhere.com (info address)'; my @address = map $_->address, Mail::Address->parse($string); { local $\ = "\n"; print for @address; }
someemail@somedomain.tld someoneelse@some.other.domain info@somewhere.com
In reply to Re: Strip everything but an email address
by bart
in thread Strip everything but an email address
by powerhouse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |