Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: Validate newline delimited email list

by Sagacity (Monk)
on Jan 12, 2007 at 22:53 UTC ( [id://594480]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Validate newline delimited email list
in thread Validate newline delimited email list

Looks to me that this line

$error++ if(!$ok);

is merely testing whether $ok exists, which it always does according to the line above it.

my $ok = Email::Valid->address($_);

Try testing for the value of $ok that was returned instead.

if ($ok == 1) {#the rest of your code } else {# code here too if you like }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-24 04:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found