![]() |
|
There's more than one way to do things | |
PerlMonks |
Re: assigning the maximum of two numbersby kirbyk (Friar) |
on Nov 02, 2005 at 22:56 UTC ( #505165=note: print w/replies, xml ) | Need Help?? |
Edit: Sorry, I misread the question entirely.
I would probably go with the ternary for readability in most cases, but if you're doing this in a critical part of your application, it looks like sort/shift is optimized well. Neat.
In Section
Meditations
|
|