{
    "content": [
        {
            "type": "text",
            "text": "# Net::Domain::TLD (perldoc)\n\n## NAME\n\nNet::Domain::TLD - Work with TLD names\n\n## SYNOPSIS\n\nuse Net::Domain::TLD qw(tlds tldexists);\nmy @ccTLDs = tlds('cc');\nprint \"TLD ok\\n\" if tldexists('ac','cc');\n\n## DESCRIPTION\n\nThe purpose of this module is to provide user with current list of\navailable top level domain names including new ICANN additions and ccTLDs\nCurrently TLD definitions have been acquired from the following sources:\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **PUBLIC METHODS**\n- **COPYRIGHT**\n- **AUTHORS**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Net::Domain::TLD",
        "section": "",
        "mode": "perldoc",
        "summary": "Net::Domain::TLD - Work with TLD names",
        "synopsis": "use Net::Domain::TLD qw(tlds tldexists);\nmy @ccTLDs = tlds('cc');\nprint \"TLD ok\\n\" if tldexists('ac','cc');",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "PUBLIC METHODS",
                "lines": 28,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 3,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Net::Domain::TLD - Work with TLD names\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Net::Domain::TLD qw(tlds tldexists);\nmy @ccTLDs = tlds('cc');\nprint \"TLD ok\\n\" if tldexists('ac','cc');\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The purpose of this module is to provide user with current list of\navailable top level domain names including new ICANN additions and ccTLDs\nCurrently TLD definitions have been acquired from the following sources:\n\nhttp://www.icann.org/tlds/\nhttp://www.dnso.org/constituency/gtld/gtld.html\nhttp://www.iana.org/cctld/cctld-whois.htm\nhttps://www.iana.org/domains/root/db\n",
                "subsections": []
            },
            "PUBLIC METHODS": {
                "content": "Each public function/method is described here.\nThese are how you should interact with this module.\n\n\"tlds\"\nThis routine returns the tlds requested.\n\nmy @alltlds = tlds; #array of tlds\nmy $alltlds = tlds; #hashref of tlds and their descriptions\n\nmy @cctlds = tlds('cc'); #array of just 'cc' type tlds\nmy $cctlds = tlds('cc'); #hashref of just 'cc' type tlds and their descriptions\n\nValid types are:\ncc                 - country code domains\nccidn              - internationalized country code top-level domain\ngtldopen          - generic domains that anyone can register\ngtldrestricted    - generic restricted registration domains\ngtldnew           - new gTLDs\nnewopen           - recently added generic domains\nnewrestricted     - new restricted registration domains\nreserved           - RFC2606 restricted names, not returned by tlds\n\n\"tldexists\"\nThis routine returns true if the given domain exists and false otherwise.\n\ndie \"no such domain\" unless tldexists($tld); #call without tld type\ndie \"no such domain\" unless tldexists($tld, 'newopen'); #call with tld type\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright (c) 2003-2016 Alex Pavlovic, all rights reserved.  This program\nis free software; you can redistribute it and/or modify it under the same terms\nas Perl itself.\n",
                "subsections": []
            },
            "AUTHORS": {
                "content": "Alexander Pavlovic <alex.pavlovic@devradius.com>\nRicardo SIGNES <rjbs@cpan.org>\n",
                "subsections": []
            }
        }
    }
}