in reply to Get FQDN from Url

Although you could try to extract the FQDN yourself, there's a good chance you could miss some special case or other. Luckily CPAN has Regexp::Common::URI.