Guest User

Untitled

a guest
Jul 22nd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #!/usr/bin/env perl
  2.  
  3. use warnings;
  4. use strict;
  5. use Email::Valid;
  6.  
  7. my $email = $ARGV[0];
  8.  
  9. print "Testing email: '$email'...\n";
  10.  
  11. unless ( Email::Valid->address( -address => $email, -mxcheck => 1 ) ) {
  12. die "Email failed $Email::Valid::Details check.\n";
  13. }
  14.  
  15. print "Email is valid\n";
Add Comment
Please, Sign In to add comment