while ( my ($test,$val) = each %{$sorter->()} ) {isn't going to work very well. &$sorter is going to be called for each iteration of the while loop, and, unless you arrange it to return a reference to the same hash each time, it will get the first key/value over and over.
In reply to Re: Sorting a hash of a hash using anonymous subs
by ysth
in thread Sorting a hash of a hash using anonymous subs
by madbombX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |