I am trying to validate email addresses.

I have the following code which succeeds in
most cases:

if ($in{email} !~ /[EMAIL PROTECTED]/i)

If the username part of the email address contains
either a "." or a "-", this code fails.

Can you tell me why it would fail, and how I could change
it to make it work for me?

Thanks,


Bill Platt
_______________________________________________
Perl-Unix-Users mailing list
Perl-Unix-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to