The Ternary Conditional Operator
Learn about the ternary conditional operator in Perl.
We'll cover the following...
We'll cover the following...
Evaluation of conditional expression
The ternary conditional operator evaluates a conditional expression and evaluates to one of two alternatives:
Syntax
The conditional expression precedes the question mark character (?). The
colon character (:) separates the alternatives. The ...