Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Error handle Net::Whois::Rawby edatawiz (Novice) |
on Apr 18, 2009 at 09:17 UTC ( [id://758424]=perlquestion: print w/replies, xml ) | Need Help?? |
edatawiz has asked for the wisdom of the Perl Monks concerning the following question:
I am using Net::Whois::Raw. I have enabled the following: $Net::Whois::Raw::OMIT_MSG = 1; $Net::Whois::Raw::TIMEOUT = 10; $Net::Whois::Raw::CHECK_FAIL = 1; I call the module by my $dominfo = whois($list1) It often fails if the url is in unknown format or at times says whois.crsnic.net: Unknown error: whois.crsnic.net:43 at C:/Perl/site/lib/Net/Who is/Raw.pm line 235 eval {...} called at C:/Perl/site/lib/Net/Whois/Raw.pm line 232 This error " eval {...} called at C:/Perl/site/lib/Net/Whois/Raw.pm line 232 " is what I often see. How do I make sure the code skips such errors and continue checking the next domain without dying.
Vishy
Back to
Seekers of Perl Wisdom
|
|