Hello all,

I have a list from a logfile that has urls browsed. I have to extract all domainnames considering subdomains as the same as the domainnames

eg
@list = qw( yahoo.com mail.yahoo.com hotmail.com yahoo.co.in cnn.co.uk news.cnn.co.uk)

I would like to write a function that will give me only the unique domainnames

@uniq = qw(yahoo.com hotmail.com yahoo.co.in cnn.co.uk)

I have a feeling someone would have done this before

Thanx
Ramprasad A Padmanabhan


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to