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