Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Ternary vs. Sort vs. Max

by eyepopslikeamosquito (Archbishop)
on Aug 11, 2015 at 03:26 UTC ( [id://1138102]=note: print w/replies, xml ) Need Help??


in reply to Ternary vs. Sort vs. Max

For completeness, the preferred "artistic" solution:

my $n = [ $y => $x ] -> [ $x >= $y ];
BTW, this coding style question is discussed in the "Cleverness" section at the bottom of The Boy Scout Rule.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found