http://qs321.pair.com?node_id=11114011


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