#!/usr/bin/perl use strict; use warnings; use List::Util qw(first max); my %hashName = ( "term1" => 83, "term2" => 20, "term3" => 193 ); my $max = max values %hashName; print $max, "\n";
In reply to Re: max value in a hash
by neniro
in thread max value in a hash
by rsiedl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |