Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

RE: RE: Email::Valid

by kilinrax (Deacon)
on Sep 13, 2000 at 19:29 UTC ( [id://32284]=note: print w/replies, xml ) Need Help??


in reply to RE: Email::Valid
in thread Email::Valid

Actually, that code has been included. Obviously someone else did find it useful ;-)
Just use the -fudge parameter:
#!/usr/bin/perl -w require 5; use strict; use Email::Valid; my $email = 'demon warez dood@aol.com'; eval { if (my $addr = Email::Valid->address( -address => $email, -mxcheck => 1, -fudge => 1 )) { print "$addr OK\n"; } else { print "$addr failed $Email::Valid::Details check.\n"; } }; warn "an error was encountered: $@" if $@;

Replies are listed 'Best First'.
RE: RE: RE: Email::Valid
by KM (Priest) on Sep 19, 2000 at 06:37 UTC
    No, that is another feature. That one cleans up spaces and such, my patch fixes foo@aol to foo@aol.com... both useful :)

    Cheers,
    KM

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://32284]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-19 22:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found