The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::IANA::TLD - IANA TLDs database

VERSION

Version 0.01

SYNOPSIS

IANA TLDs database

    use Net::IANA::TLD;

    # for each new(), the latest TLD data will be downloaded from IANA's website
    # you should cache the object
    my $tld = Net::IANA::TLD->new();

    print $tld->version, "\n";
    print $tld->date, "\n";
    print $tld->size, "\n";

    # validate if a given TLD exists
    my $given_tld = "com";
    print "The TLD $given_tld exists\n" if $tld->has_tld($given_tld);


    # dump all tlds
    use Data::Dumper;
    my $hash_ref = $tld->tlds;
    print Dumper $hash_ref;

SUBROUTINES/METHODS

new my $tld = Net::IANA::TLD->new();

verison $tld->version;

date $tld->date;

size $tld->size;

tlds # fetch all tlds my $hash_ref = $tld->tlds;

has_tld # return undef if given tld not exists my $res = $tld->has_tld($given_tld);

AUTHOR

Wesley Peng, <wesley at cpan.org>

BUGS

Please report any bugs or feature requests to bug-net-iana-tld at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-IANA-TLD. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Net::IANA::TLD

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

This software is Copyright (c) 2020 by Wesley Peng.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)