Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Ternary vs. Sort vs. Max

by Athanasius (Archbishop)
on Aug 10, 2015 at 14:08 UTC ( [id://1138037]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! perl
    use strict;
    ...
    my $m = max($x, $y);
    
    print "max is $m\n";
    
  2. or download this
     0:05 >perl 1334_Med.pl 17 12
    max is 17
    ...
    1334_Med.pl syntax OK
    
     0:05 >
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-04-16 12:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found