http://www.perlmonks.org?node_id=617810


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

turnstep's first answer has two bugs

  1. He forgot to set $maxval after fiding a longer string
  2. He forgot to consider index 0

Originally posted as a Categorized Answer.

  • Comment on Re: How can I find the index of the biggest element in an array?