Verifying email addresses given by a user

[email protected] (Adam Jimerson) Wed, 31 Dec 2008 23:03:21 -0600
Newsgroups perl.beginners.cgi
Message-ID <[email protected]>
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.