Net::Domain::TLD(3)
πΈ NAME πΈ
Net::Domain::TLD β yes, the Net::Domain::TLD(3) manual page from User Contributed Perl Documentation, hiii bestie ππ β is literally here to Work with TLD names. That's the whole vibe. π
β¨ SYNOPSIS β¨
okay so you load it like this, no cap:
use Net::Domain::TLD qw(tlds tld_exists);
my @ccTLDs = tlds('cc');
print "TLD ok\n" if tld_exists('ac','cc');
π DESCRIPTION π
okay so the whole purpose of this module is to provide user with the current list of available top level domain names, including new ICANN additions and ccTLDs. That's literally the main character energy of this module. β¨
Currently TLD definitions have been acquired from the following sources, bestie:
http://www.icann.org/tlds/http://www.dnso.org/constituency/gtld/gtld.htmlhttp://www.iana.org/cctld/cctld-whois.htmhttps://www.iana.org/domains/root/db
π οΈ PUBLIC METHODS π οΈ
Each public function/method gets described down here β these are how you should interact with this module, periodt. π
β¨ tlds β¨
This routine returns the tlds requested. lowkey simple, highkey useful. π¦
my @all_tlds = tlds; #array of tlds
my $all_tlds = tlds; #hashref of tlds and their descriptions
my @cc_tlds = tlds('cc'); #array of just 'cc' type tlds
my $cc_tlds = tlds('cc'); #hashref of just 'cc' type tlds and their descriptions
Valid types are β memorize these, iykyk:
ccβ country code domains πccidnβ internationalized country code top-level domain π¦gtld_openβ generic domains that anyone can register πgtld_restrictedβ generic restricted registration domains πgtld_newβ new gTLDs βnew_openβ recently added generic domains πΈnew_restrictedβ new restricted registration domains πreservedβ RFC2606 restricted names, not returned bytldsπ
π¦ tld_exists π¦
This routine returns true if the given domain exists and false otherwise. it's giving domain vibe check, fr fr. π
die "no such domain" unless tld_exists($tld); #call without tld type
die "no such domain" unless tld_exists($tld, 'new_open'); #call with tld type
π COPYRIGHT π
Copyright (c) 2003-2016 Alex Pavlovic, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
π AUTHORS π
Alexander Pavlovic <alex.pavlovic@devradius.com>πRicardo SIGNES <rjbs@cpan.org>π«Ά
okay that's the whole Net::Domain::TLD(3) serve π
β this page is from perl v5.42.0, dated 2016-09-18, and yes it's literally the Net::Domain::TLD(3) manual, mwah πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Net-Domain-TLD 1.75-bp160.1.12 Β· GPL-1.0+ or Artistic-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms