Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: parse email address

by marto (Bishop)
on Apr 03, 2013 at 10:02 UTC ( #1026814=note: print w/ replies, xml ) Need Help??


in reply to parse email address

You're not using open in a sane way, consider copying the examples from the documentation, checking and reporting on errors (the $! variable). You don't print every email address matching your criteria to a file, if it exists more than once you're going to have duplicates. To find only the unique email addresses you can use the List::MoreUtils module, or roll your own. A good discussion of this problem and in depth description of an alternate solution can be found in Unique values in an array in Perl.


Comment on Re: parse email address
Download Code
Replies are listed 'Best First'.
Re^2: parse email address
by BigGer (Novice) on Apr 03, 2013 at 12:37 UTC

    Thanks for the pint in the right direction. G

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2015-07-08 08:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (96 votes), past polls