in reply to assigning the maximum of two numbers

The only other possibly reasonable approach I can think of is

my $max = $candidate[0]; $max = $candidate[1] if $max < $candidate[1];

but I don’t find the question interesting enough to actually benchmark it.

Makeshifts last the longest.