logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Whois - Perl extension to make queries to the whois servers

Author

       Timur Bakeyev <timur@ripe.net>

Description

       Stub documentation for Whois was created by h2xs. It looks like the author of the extension was negligent
       enough to leave the stub unedited.

       Blah blah blah.

Name

       Whois - Perl extension to make queries to the whois servers

See Also

perl(1).

perl v5.32.0                                       2021-01-26                                         Whois(3pm)

Synopsis

         use Whois;

         $whois = new Whois('Host' => 'whois.ripe.net');

        die("Failed to create object") unless(ref($whois));

        die($whois->GetError()) if($whois->GetError());

        if($whois->Query("BAT-RIPE")) {
           printf("Query error: %s\n", $whois->GetError());
           exit;
        }

        my $result = $whois->GetResult();

        if($result) {
           print "$result\n";
        }
        else {
          printf("No results: %s\n", $whois->GetError());
        }

        $whois->Close();

See Also