Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: finding emails

by tachyon (Chancellor)
on Nov 11, 2002 at 23:08 UTC ( #212136=note: print w/ replies, xml ) Need Help??


in reply to finding emails

Incomprehensible. Perhaps start here...

while (<DATA>) { my @emails = $_ =~ m/([^\s<>]+\@[^\s<>]+)/g; $emails{$_}++ for @emails; } use Data::Dumper; print Dumper \%emails; __DATA__ go@away.com<new@foo.com>spam@me.net foo@baz.bar bar@ppp.ipsec wid@get.com jfreeman@[nospam]tassie.net.au

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print


Comment on Re: finding emails
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2014-10-02 06:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (49 votes), past polls