Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: use Email::Valid offline

by 1nickt (Abbot)
on Mar 09, 2020 at 16:00 UTC ( #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}) ? "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.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2021-03-07 12:36 GMT
Find Nodes?
    Voting Booth?
    My favorite kind of desktop background is:

    Results (121 votes). Check out past polls.