<?xml version="1.0" encoding="windows-1252"?>
<node id="617760" title="Answer: How can I find the index of the biggest element in an array?" created="2007-05-27 14:57:24" updated="2007-05-27 10:57:24">
<type id="1888">
categorized answer</type>
<author id="11732">
QandAEditors</author>
<data>
<field name="doctext">
&lt;code&gt;
my $i = $#data;
my $max = $i;
$max = $data[$i] &gt; $data[$max] ? $i : $max while $i--;
print "Max value is $data[$max], at index $max\n"
&lt;/code&gt;
</field>
<field name="parent_node">
62913</field>
</data>
</node>
