in reply to Re: argmin & argmax
in thread argmin & argmax

There is also List::UtilsBy::max_by and List::UtilsBy::min_by which do this and have the additional feature of returning several items in list context if they all have the same value.