in reply to Validate newline delimited email list
Works for me except I had to initialize $email_list, initialize $error_message and print $error_message. Could you provide a snippet that actually shows the error?
There are a couple of details worth mentioning.
split( /\n/, ... )
is easier to read than
split( / /, ... )
... if( $error > 0 );
or just
... if $error;
is easier to read than
... unless( $error < 1 );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Validate newline delimited email list
by philosophia (Sexton) on Jan 12, 2007 at 21:35 UTC | |
by ikegami (Patriarch) on Jan 12, 2007 at 21:50 UTC | |
by philosophia (Sexton) on Jan 12, 2007 at 22:20 UTC | |
by philosophia (Sexton) on Jan 12, 2007 at 22:44 UTC | |
by ikegami (Patriarch) on Jan 12, 2007 at 22:52 UTC | |
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 Sagacity (Monk) on Jan 12, 2007 at 22:53 UTC |