From The Camel (Programming Perl (Third edition): section 3.16. Conditional Operator):
As in C, ?: is the only trinary operator.
The Camel also comments in the introduction to Chapter 3:
Perl operators come in three arities: unary, binary, and trinary (or ternary, if your native tongue is Shibboleth).
Update: in light of some later replies to the OP perhaps I should note that as Perl has only one terniary/trinary operator, and given The Camel's use of 'trinary', it is reasonable in the context of Perl to refer to the conditional operator ?: as 'the trinary operator'. This may not be "correct" in a wider sense, but is certinally fitting in a Perl context. :)
In reply to Re: Ternary operator (there's no Trinary operator )
by GrandFather
in thread Ternary operator (there's no Trinary operator )
by davido
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |