To perl-unix-users@listserv.ActiveState.com [Add] Subject
[Perl-unix-users] Email Address Validation Show full header
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,
----------------------------------------------------------
Hi,
I would rather consider using "email::valid".
(A search on www.perlmonk.org with "email validation") See following links :
http://www.perlmonks.org/?node_id=3690
http://www.perlmonks.org/?node_id=125298
Regards,
BT
_______________________________________________
Perl-Unix-Users mailing list
Perl-Unix-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs