Also take a look at List::Util for some basic examples.
Update: Less succinct now when fixed:
use List::Util 'reduce'; sub minindex { my @x=@_; reduce { $x[$a] < $x[$b] ? $a : $b } 0..$#_ }
In reply to Re^3: index of the minimum element of the array
by oiskuu
in thread index of the minimum element of the array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |