Whois(3pm)

πŸ“¦
version 3.72 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– Whois(3pm) β€” the manual page, but make it cute πŸ’–

okay bestie, so this is Whois, a Perl thingy from the 3pm section of the manual (that's the Perl module section, iykyk). It's a whole module for making queries to whois servers. slay. let's get into it ✨


πŸ¦‹ NAME πŸ¦‹

Whois β€” it's a Perl extension whose whole entire job is making queries to the whois servers. that's it, that's the vibe πŸ’…


🌸 SYNOPSIS 🌸

here's what it looks like in the wild, copy-paste ready, no cap:

  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();

like, the flow is: make the object, vibe check it, fire off a Query, grab the GetResult, and Close on your way out. main character energy fr fr 🌈


✨ DESCRIPTION ✨

okay so warning: this section is stub documentation. it was created by h2xs, and it looks like the author of the extension was negligent enough to leave the stub unedited. 😭

so like… the description is literally:

Blah blah blah.

yeah. that's the whole description bestie. not me reading the docs and getting Blah blah blah πŸ’€ the tea is that the real info lives in the code and in the synopsis above. periodt.


πŸ‘‘ AUTHOR πŸ‘‘

Timur Bakeyev <timur@ripe.net> β€” the icon who wrote this 🫢


πŸŽ€ SEE ALSO πŸŽ€

  • perl(1) β€” go read it, bestie, it's the blueprint πŸ’œ

and that's a wrap on the whole page! this beauty comes to you from perl v5.32.0, dated 2021-01-26 🌸 stay curious, stay iconic, and go query some whois servers responsibly βœ¨πŸ’–

πŸ“¦ where this page comes from