Recently, btrott pointed me to Net::ParseWhois as a solution to a problem I was having. Using it, I found a bug (in the sense that Net::ParseWhois was supposed to be backwards compatible to Net::Whois and reported it to the author.
perl -MNet::Whois -e "$w=new Net::Whois::Domain \"flyflyfly.com\"; + print 1 unless($w->ok)" 1 perl -MNet::ParseWhois -e "$w=new Net::ParseWhois::Domain \"flyfly +fly.com\"; print 1 unless($w->ok)" no registrar configured for referral whois.corenic.net Can't call method "ok" without a package or object reference at -e + line 1.
The author replied to my e-mail with a fix and after another e-mail exchange, gave me permission to post the correspondence and a link to the new version of Net::ParseWhois, in case anyone has decided to use it.
Hi Curtis,

Thanks for the feedback. You are actually the first person (out of maybe 40 who've downloaded the code) to send me email.

Attached you'll find the latest version of Net::ParseWhois. I fixed the bug you found and a few others. See the perldoc Net::ParseWhois page for details, but basically - it'll return an object now with ok properly set to true if a domain exists no matter what. If ParseWhois doesn't know about the registrar, it'll set unknown_register to true and raw_whois_data will have the raw data --

unless ($w->ok) { die "No match for $dom\n"; } if ($w->unknown_registrar) { die "domain found, registrar unknown. raw data \follows\n" . $w->r +aw_whois_text . "\n"; }
I have a few more things I need to do before minting version 0.6, which'll be when I'll actually submit the module to CPAN.. drop me a note if you'd like to be kept abrest on the latest developments.

Thanks again for your feedback.

Abe


The updated module may be found at http://honestabe.net/Net-ParseWhois-0.59.tar.gz

Abe further stated that he will be continuing work on this module and will be uploading it to CPAN.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.


In reply to Net::ParseWhois Update by Ovid

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.