On Jul 10, 2014, at 11:30 AM, Sunita Pradhan wrote:
> I want to write a script which will verify a valid email address .
> Could anybody give some ideas , how to write a pattern for this ?

Sunita,

        I've used Email::Valid for this and it works nicely.  And the code to 
use it is pretty easy, too.

use Email::Valid;
if (!Email::Valid->address( -address => $email_address_to_test, -mxcheck => 1 
)) {
        ... process error here ...
}

https://metacpan.org/pod/Email::Valid

Frank

http://www.surfshopcart.com/
Setting up shop has never been easier!

Now on GitHub
https://github.com/surfshopcart/surfshop


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to