Subject: | Net::DNS Resolver not initialized |
The $Resolver object in Email::Valid is not initialized until you try to
look something up with it. This is a problem if you need to change
Resolver settings as documented. e.g.: the following will not work:
use Email::Valid;
$Email::Valid::Resolver->tcp_timeout(15);
because $Email::Valid::Resolver has not yet been initialized.
I fixed this by initializing $Resolver if necessary in import() here:
http://github.com/mschout/email-valid/commit/bf09c93c
I also added a test case.
I am sending a pull request to you via github for this as well.
Thanks!