"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 ); ...
In reply to Re^3: Validate newline delimited email list
by ikegami
in thread Validate newline delimited email list
by philosophia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |