in reply to Re: Re: Re: sorting hashes by valuein thread sorting hashes by value
foreach my $sortedkey (sort {$hashname{"$a"} <=> $hashname{"$b"} } key +s %hashname) { printf "Value: %d Key: %s", %hashname{"$sortedkey"}, $sortedkey; } [download]