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}};
In reply to Re: Get hash value with the lowest key
by eserte
in thread Get hash value with the lowest key
by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |