in reply to Hash help

raisputin:

The sort function will accept a chunk of code to define the sort order. So you should be able to tell sort to compare the value of the COUNT member of your hash using something similar to:

for my $key (sort { $HASH{$a}{COUNT} <=> $HASH{$b}{COUNT} } keys %HASH +) { my $value = $HASH{$key}; ... }

Caveat: I don't recall ever using this myself, I'm just parroting (correctly, I hope!) other posts I've seen here on how to do it.

Caveat 2: You'll want some error checking for missing COUNT members, etc.

Update: ... must learn to type as fast as ikegami ...

...roboticus