in reply to Get hash value with the lowest key

A slightly faster solution than using sort() or a for loop is to use List::Util::min:
my $href = { '6' => '154', '4' => '152', '1' => '80', '3' => '151', '8 +' => '150' }; use List::Util qw(min); my $min = min keys %$href; $href = {$min => $href->{$min}};