in reply to How do I find the biggest number in an array of numbers.

my $max = (sort { $b <=> $a } @array)[0];