http://www.perlmonks.org?node_id=221023

mkent has asked for the wisdom of the Perl Monks concerning the following question:

Can anyone tell me how to take a hash and sort it such that

1) matching values will be counted and displayed once with a total count, like if www.yahoo.com appears 20 times one line is outputted like "www.yahoo.com - 20"

2) before output, the hash is sorted by number, with the highest number first, and descending?

3) the output is 10 lines at a time such that a user on a web page can click on "next 10" or "previous 10" in order to scroll forward and backward by pages?