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

NAME

WWW::eNom::Role::ParseDomain - Parse a domain into sld and public_suffix/tld

REQUIRES

name

DESCRIPTION

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.

ATTRIBUTES

sld

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.

public_suffix

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.

NOTE this is lazy built with an init_arg of undef.