Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: use Email::Valid offline

by 1nickt (Canon)
on Mar 09, 2020 at 16:00 UTC ( [id://11114011]=note: print w/replies, xml ) Need Help??


in reply to use Email::Valid offline

Hi, please double-check the doc for Email::Valid ... probably not directly related to your problem, but it shows a different syntax for the off-line validity check:

$ perl -Mstrict -MEmail::Valid -wE 'say Email::Valid->address(q{myname +@mydomain.com}) ? "valid" : "failed $Email::Valid::Details check"';

Hope this helps!

update: refactored tone thx davido


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^2: use Email::Valid offline
by davido (Cardinal) on Mar 09, 2020 at 16:36 UTC

    The only time I ever found a value in $Email::Valid::Details during my testing was when it contained "mxcheck" after enabling the -mxcheck => 1 feature, disabling networking, and waiting around for the two minute timeout.

    However, it is always correct to suggest looking at all the error messages and checking the docs when something goes wrong. So yes, correct 1nickt.


    Dave

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-25 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found