foreach my $item (sort { scalar keys (%{$reg{$b}})<=>scalar keys (%{$r +eg{$a}}) || $b<=>$a } keys %reg){ + foreach my $case (sort {$a<=>$b || $reg{$item}{$a} <=> $reg{$item} +{$b}} keys %{$reg{$item}}){ print "$c = $item:$case\n"; $c++; } } __OUTPUT__ 1 = 282:37 2 = 282:38 3 = 282:39 4 = 212:41 5 = 212:42 6 = 212:49
I hope life isn't a big joke, because I don't get it.
-SNL
In reply to Re: Lost with a multi-level hash sort
by NetWallah
in thread Lost with a multi-level hash sort
by glenn_t
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |