foreach my $sortedkey (sort {$hashname{"$a"} <=> $hashname{"$b"} } key +s %hashname) { printf "Value: %d Key: %s", %hashname{"$sortedkey"}, $sortedkey; }
In reply to Re: Re: Re: Re: sorting hashes by value
by waswas-fng
in thread sorting hashes by value
by imlou
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |