Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: assigning the maximum of two numbers

by sauoq (Abbot)
on Nov 02, 2005 at 23:25 UTC ( [id://505179]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub max { $_[ $_[0] < $_[1] ] }
    
  2. or download this
    my $max_xy = ($x,$y)[$x<$y]
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (1)
As of 2024-04-25 05:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found