Personally, I only use ternary ops (which I do use frequently) if it is as basic as it gets:
return $x ? $y : $z;
If there is more than one condition, it's if/elsif/else, and if it gets much beyond that, I use a hash/dispatch table or some form of hash mechanism to just "drop-in" the result of the condition to present the result I want.
In reply to Re^2: Ternary operators: a hinderance, not a help
by stevieb
in thread Ternary operators: a hinderance, not a help
by Tanalis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |