in reply to reusable hash value sort

One option (maybe not the best) is to create a function that does the sort, rather than a function that does each comparison. For example:
sub sorted_keys_by_value { my $hash = shift; return sort {$hash->{$a} cmp $hash->{$b}} keys %$hash; } @sorted_keys = sorted_keys_by_value(\%myHash);

-- Mike

--
just,my${.02}