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:

πŸ› οΈ 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 by tlds πŸ’€

πŸ¦‹ 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 (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