|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: problem querying TLD nameserver with Net::DNS::Resolverby bingos (Vicar) |
| on Feb 24, 2011 at 10:48 UTC ( #889953=note: print w/ replies, xml ) | Need Help?? |
|
Your variable is undefined because there wasn't an answer to the specific question you asked From the Net::DNS::Resolver documentation: Returns a "Net::DNS::Packet" object, or "undef" if no answers were found. If you need to examine the response packet whether it contains any answers or not, use the send() method instead. This amended code uses send() instead:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||