Think about Loose Coupling | |
PerlMonks |
Re: Dealing with Email::Valid timeoutby McA (Priest) |
on Nov 26, 2014 at 15:19 UTC ( [id://1108466]=note: print w/replies, xml ) | Need Help?? |
Hi, the documentation of Email::Valid mentions the fact that an exception could be thrown. Therefor it's part of the API. To cite the relevant part: If an error is encountered, an exception is raised. This is really only possible when performing DNS queries. Trap any exceptions by wrapping the call in an eval block: McA
In Section
Seekers of Perl Wisdom
|
|