This code is not really useful when a Url is for example http://www.bla.co.uk/blubber/index.html ;-) Can anyone please give me a hint?$s = "http://www.blablubber.net/bla/index.html"; ($url,undef) = split(/\//,$s); @domain = split(/\./,$url); $tld = pop(@domain); $domainname = pop(@domain); $fqdn = "$domainname.$tdl";
In reply to Get FQDN from Url by ast
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |