Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi folks,
I am currently working on a project to produce an analysis of the technologies being used on the web. For example, the number of sites using JavaScript, VBScript, CSS, Flash, Applets. I have developed the spider and collected lots of results. To display the results I have developed a website
http://www.webchalkboard.com/bot/index.shtml
I have just published this months results, and if you go to this page and select the month you want to view results for, you will notice that the results are split down into different domains.
Ok, my problem is how to sort these countries alphabetically. I know this sounds a very simple problem, and i've checked the Q&A section for details but found nothing. The domains are stored in a hash, with the key being 'COM' and the value being 'Commercial Sites' for example. So how can I put these countries in order, because when I loop through the hash, this is the order they come out in...?
I hope that makes sense and someone can point me in the right direction.
Many thanks, Tom
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sorting My Hash
by vladb (Vicar) on May 22, 2002 at 14:27 UTC | |
|
Re: Sorting My Hash
by Molt (Chaplain) on May 22, 2002 at 14:16 UTC | |
|
Re: Sorting My Hash
by broquaint (Abbot) on May 22, 2002 at 14:19 UTC |