see URI for parsing URIs. If you just want to get the "main" domain, you could try something like join(".", ( split(/\./, $domains ) )[-2,-1] ) (if I understand you correctly)
Best regards,
perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"
In reply to Re: Extract Host, Logical Host from URL
by strat
in thread Extract Host, Logical Host from URL
by downer
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |