The stupid question is the question not asked | |
PerlMonks |
Re: Extract Host, Logical Host from URLby strat (Canon) |
on Aug 15, 2007 at 05:48 UTC ( [id://632655]=note: print w/replies, xml ) | Need Help?? |
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,
In Section
Seekers of Perl Wisdom
|
|