Try this:
First the keys are sorted, and for each of those, all values are printed.foreach my $key (sort {$b <=> $a} keys %$sort_line_contents) { print join("\n", values %{$sort_line_contents->{$key}}), "\n"; }
Hope this helps, -gjb-
In reply to Re: Sort not acting as expected on Hash Ref
by gjb
in thread Sort not acting as expected on Hash Ref
by oakbox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |