in reply to How can I find the index of the biggest element in an array?
my $i = $#data; my $max = $i; $max = $data[$i] > $data[$max] ? $i : $max while $i--; print "Max value is $data[$max], at index $max\n"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Answer: How can I find the index of the biggest element in an array?
by Jenda (Abbot) on May 28, 2007 at 14:09 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |
In Section
Seekers of Perl Wisdom