in reply to Re: max "value " of an hash
in thread max "value " of an hash
# get values with numerical sort @values = sort {$a<=>$b} values %hash; # get the array last value, that considered the max value of the hash $max=$values[$#values]; print $max;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: max "value " of an hash
by Khariton (Sexton) on Dec 21, 2010 at 10:44 UTC | |
by k_manimuthu (Monk) on Dec 21, 2010 at 12:01 UTC |