Perl: the Markov chain saw | |
PerlMonks |
Re: Validate newline delimited email listby japhy (Canon) |
on Jan 12, 2007 at 21:08 UTC ( [id://594454]=note: print w/replies, xml ) | Need Help?? |
First of all, use split /\n/. Don't put a literal newline in your code -- that's ugly.
Second, the chomping is entirely unnecessary if you're splitting the string on newlines. Third, are you entirely sure the email addresses contain validly formatted addresses and nothing else? I'd suggest doing:
In Section
Seekers of Perl Wisdom
|
|