http://www.perlmonks.org?node_id=482295


in reply to Ternary operators: a hinderance, not a help

If it's used to enhance readability, I'm in favor. Look at your example -- 7 lines of code vs 1 line of code. As long as the tests and predicates are short, single line constructs, I think the vertical space savings of the ternary operator are worthwhile, even when chained.

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.