in reply to Re^2: Validate newline delimited email list
in thread Validate newline delimited email list
"test@test.com " is indeed bad. Notice the trailing space? It's easy to fix the address, though.
sub trim { my ($s) = @_; for ($s) { s/^\s+//; s/\s+$//; return $_; } } ... my @other_addresses = map trim, split( /\n/, $email_list ); ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Validate newline delimited email list
by philosophia (Sexton) on Jan 12, 2007 at 22:20 UTC | |
|
Re^4: Validate newline delimited email list
by philosophia (Sexton) on Jan 12, 2007 at 22:44 UTC | |
by ikegami (Patriarch) on Jan 12, 2007 at 22:52 UTC | |
|
Re^4: Validate newline delimited email list
by philosophia (Sexton) on Jan 12, 2007 at 22:08 UTC | |
by ikegami (Patriarch) on Jan 12, 2007 at 22:31 UTC | |
by philosophia (Sexton) on Jan 12, 2007 at 22:33 UTC | |
by ikegami (Patriarch) on Jan 12, 2007 at 22:52 UTC | |
by philosophia (Sexton) on Jan 12, 2007 at 23:07 UTC | |
|