in reply to Retriving data from Hash of Hashes

For this, and many other problems, there is a self-service, no-waiting option: the Monastery's library of Tutorials. In this case, look to Data Type: Hash and, especially, planetscape's fine entry.

Your search engine can help you find offsite sources such as Simon Cozens' "Hash Crash Course" and McGill University's How to Hash

Replies are listed 'Best First'.
Re^2: Retriving data from Hash of Hashes
by AnomalousMonk (Archbishop) on Apr 19, 2015 at 12:26 UTC
    ... Simon Cozens' "Hash Crash Course" ...

    The code
        @popular =
            (sort { $histogram{$b} <=> $histogram{$b} } @unique)[0..4];
    in the "Counting" section should be
        @popular =
            (sort { $histogram{$b} <=> $histogram{$a} } @unique)[0..4];


    Give a man a fish:  <%-(-(-(-<