More details:
Remember that the $a and $b in your sort method are going to be doing comparisons based upon what might other wise be in your $_, so, if you need to sort the based upon the values that you would access like so:
$hash{$name}{$_}You'd sort with $a and $b almost the same way:
$hash{$name}{$b} <=> $hash{$name}{$a}The $b goes before the $a to ensure descending order.
In reply to Re: Sorting an HoH (Or Something?)
by Art_XIV
in thread Sorting an HoH (Or Something?)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |