I'm trying to make my script verify a email address that a user has given to it. I have installed and using Email::Valid but it doesn't seem to be working for it allowed this as a email address:

test

The way that I have it checking is by this:
eval {
                my $addr = Email::Valid->address( -address => "$email",
                -mxcheck => 1);
};

I pretty much took this from http://search.cpan.org/~rjbs/Email-Valid-0.179/lib/Email/Valid.pm I don't know what is wrong.

--
To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org
For additional commands, e-mail: beginners-cgi-h...@perl.org
http://learn.perl.org/


Reply via email to