You can even do away with the intermediate array variable:
my $min = ( sort { $a <=> $b } keys %hash )[ 0 ];In reply to Re^2: How do I keep the first key in a sorted hash?
by Not_a_Number
in thread How do I keep the first key in a sorted hash?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |