Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Getting email from fields

by Your Mother (Archbishop)
on Oct 27, 2017 at 06:58 UTC ( [id://1202121]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1202121]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-19 15:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found