%h = ( map { ($_, $h{$_}) } sort {$a<=>$b} keys %h )[0,1]; [download]
In reply to Re: Get hash value with the lowest key by rir in thread Get hash value with the lowest key by kiat