WWW::eNom::Role::ParseDomain - Parse a domain into sld and public_suffix/tld
This role is consumed by objects that have a domain name and adds to the consuming object the ability to split that domain into sld and public_suffix/tld. This is critically important because most of eNom's API expects the SLD and TLD to be sent as different parameters.
The SLD of the domain. For google.co.uk this value would be google.
NOTE this is lazy built with an init_arg of undef.
The public_suffix of the domain (what some folks incorrectly call the TLD). For domains like google.co.uk the public_suffix is .co.uk. The public suffix is what is available for someone to actually register. For additional information between the distinction between Top Level Domain and Public Suffix please see https://publicsuffix.org/learn/
An alias of 'tld' is also provided if you really wish to refer to this as the TLD.
To install WWW::eNom, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::eNom
CPAN shell
perl -MCPAN -e shell install WWW::eNom
For more information on module installation, please visit the detailed CPAN module installation guide.