The Ternary Conditional Operator

Learn about the ternary conditional operator in Perl.

Evaluation of conditional expression

The ternary conditional operator evaluates a conditional expression and evaluates to one of two alternatives:

Get hands-on with 1400+ tech skills courses.