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.
In reply to Re: assigning the maximum of two numbers
by Aristotle
in thread assigning the maximum of two numbers
by bageler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |