in reply to Returning the lowest key in a hash (or highest)
Sort takes O(n log n). Simply walking the keys of the hash is only O(n).
Updated: Fixed that bug...:)my ($min, undef) = each %hash; $min > $_ and $min = $_ for keys %hash;
In Section
Seekers of Perl Wisdom