Replace the while each loop with,
Hashes don't stay sorted.for (sort keys %{$hash{$key}}) { print "nested key: $_ \n"; }
After Compline,
Zaxo
In reply to Re: Sorting hash of hashes
by Zaxo
in thread Sorting hash of hashes
by tweak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |