Do you know where your variables are? | |
PerlMonks |
(dkubb) Re: (2) Checking on multiple email addresses in a stringby dkubb (Deacon) |
on Jul 22, 2001 at 21:58 UTC ( [id://98848]=note: print w/replies, xml ) | Need Help?? |
You should check out a module called Email::Find, it will match email addresses in a string, and uses Email::Valid underneath to validate each match. Here is some sample code that matches email addresses in a string, and pushes each of them onto an array. All you'll have to do is check to make sure that @MATCHES has only a single element, then you know the user has submitted one email address.
In Section
Seekers of Perl Wisdom
|
|