John W. Krahn wrote:
Andrej Kastrin wrote:
Dear all,
Hello,
I'm looking for simple (and fast) solution to extract maximum value from
a hash. I search over the Perl mailing lists, but I didn't find anything
usable.
One way to do it:
my $max;
$max < $_ and $max = $_ for valu
Andrej Kastrin wrote:
> Dear all,
Hello,
> I'm looking for simple (and fast) solution to extract maximum value from
> a hash. I search over the Perl mailing lists, but I didn't find anything
> usable.
One way to do it:
my $max;
$max < $_ and $max = $_ for values %hash;
And another way:
my $m
m: Andrej Kastrin [mailto:[EMAIL PROTECTED]
Sent: Mon 10/2/2006 3:52 PM
To: beginners perl
Subject: Maximum value in Hash
Dear all,
I'm looking for simple (and fast) solution to extract maximum value from
a hash.
Institute For Infocomm Research - Disclaimer -
in [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 02, 2006 8:53 AM
> To: beginners perl
> Subject: Maximum value in Hash
>
> Dear all,
>
> I'm looking for simple (and fast) solution to extract maximum
> value from a hash. I search over the Perl mailing list
Dear all,
I'm looking for simple (and fast) solution to extract maximum value from
a hash. I search over the Perl mailing lists, but I didn't find anything
usable.
Thanks in advance for any suggestion, Andrej
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAI