sub lowest_key (\%) { my @keys = keys %{ shift() }; my $low = $keys[0]; foreach(@keys) { $low = $_ if $_ < $low; } return $low; }
In reply to Re: Returning the lowest key in a hash (or highest)
by MrNobo1024
in thread Returning the lowest key in a hash (or highest)
by deprecated
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |