in reply to How can I find the index of the biggest element in an array?

Also if your question is specifically about finding the largest number, the following code should work just fine :
%arrayHash=map {$_=> $i++} @array=(-15,4,8,10,3,2,7); print $arrayHash{pop [sort {$a<=>$b} @array]};

Originally posted as a Categorized Answer.