in reply to The Boy Scout Rule

"Would this statement pass your code review?..."

I would use List::Util by all means.

See also Don't be clever.

Best regards, Karl

«The Crux of the Biscuit is the Apostrophe»

Replies are listed 'Best First'.
Re^2: The Boy Scout Rule
by Anonymous Monk on Jan 26, 2015 at 10:20 UTC
    Yeah, using max() for two values is going overboard :) its just like using bitshifting on codethinkied ... which is just like the anon-array-dereference eyepopslikeamosquito posted .... just use the ternary or if/else