in reply to sort hash by value

Hi Anonyous Monk.

You almost had it. You need to wrap the sort in {} and the hash in parenthsis.

foreach (sort {$hash{$a} cmp $hash{$b}} (keys %hash)


"Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

sulfericacid