Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Extract Host, Logical Host from URL

by strat (Canon)
on Aug 15, 2007 at 05:48 UTC ( #632655=note: print w/ replies, xml ) Need Help??

in reply to Extract Host, Logical Host from URL

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."

Comment on Re: Extract Host, Logical Host from URL
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://632655]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (15)
As of 2014-12-19 20:26 GMT
Find Nodes?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?

    Results (91 votes), past polls