http://qs321.pair.com?node_id=98848


in reply to Checking on multiple email addresses in a string

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.