title: Sort multidimensional hash by values and print the highest
body: <p>I have a stored multidimensional hash (<code>%info</code>) with the following structure:</p>
  <pre><code>$info{$os}{$id}=$length;
  
  foreach $os (keys %info){   
      foreach $id (keys %{$info{$os}}){
          print &quot;$os $id =&gt; &quot; . $info{$os}{$id} .&quot;\n&quot; if (keys %info &gt; 100);
      }
  }
  </code></pre>
  <p>With this, I can read the hash and print only those <code>$os</code> with more than 100 occurrences, but now I would like to print only the <code>$id</code> with highest <code>$length</code> (i.e., values). So I would like to sort the hash by values and print only <code>$os</code> and <code>$id</code> with highest value.</p>