in reply to Dealing with Email::Valid timeout
I didn't see any mention of $Email::Valid::Response in Email::Valid, and the only timeout mentionned here is the tcp timeout of Net::DNS::Resolver, I suppose that's what you're talking about.
The error should be caught by the eval line 661 in i_Schedule.pm, if you want to catch it sooner, just add another eval sooner. As a matter of fact, the idiom:
is the core-perl equivalent to the try/catch pair that you may find in other languages.eval { success() or die(); }; if ($@) { complain() and cleanUp(); }
should do the trickeval { Email::Valid::address(@params) }; # i_Post_Exam.pm line 1560 if ($@) { warn "I haz got an error"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dealing with Email::Valid timeout
by McA (Priest) on Nov 26, 2014 at 15:28 UTC | |
|
Re^2: Dealing with Email::Valid timeout
by Steve_BZ (Chaplain) on Nov 26, 2014 at 15:38 UTC | |
by Eily (Monsignor) on Nov 26, 2014 at 15:54 UTC |