say $x ? "true" : "false";
And it's called the conditional operator. It is merely a ternary operator, just like addition operator is a binary operator. It not even Perl's only ternary operator.
In reply to Re^3: Evaluating the condition ($x ||= $y)
by ikegami
in thread Evaluating the condition ($x)
by syphilis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |