Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing whitespace

  • Loading branch information...
commit 8b659d6d0b86970802d99568e94c96ee32eda7bb 1 parent 84d0887
@petdance authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 s/email.pod
View
7 s/email.pod
@@ -4,8 +4,7 @@
In general, you can't. There are several methods available to see
if it looks reasonable, but there is no way to determine if an
-address is actually deliverable without actually attempting
-delivery.
+address is actually deliverable without actually attempting delivery.
Using regular expressions:
@@ -25,14 +24,14 @@ the modules available on L<http://search.cpan.org>, such as:
C<Email::Valid> makes it easy to determine if an email address is
well-formed:
-
+
use Email::Valid;
print ( Email::Valid->address( 'someone@gmail.com' ) ? 'Yes' : 'No' ); # prints Yes
print ( Email::Valid->address( 'someone#gmail.com' ) ? 'Yes' : 'No' ); # prints No
C<Email::Valid> can also tell you why an address is invalid:
-
+
print "Invalid address: $Email::Valid::Details \n"
unless Email::Valid->address( 'you#foo.bar' );
Please sign in to comment.
Something went wrong with that request. Please try again.