Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: assigning the maximum of two numbers

by Aristotle (Chancellor)
on Nov 02, 2005 at 23:08 UTC ( [id://505171]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://505171]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-19 00:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found