in reply to Re^2: Evaluating the condition ($x ||= $y)
in thread Evaluating the condition ($x)
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Evaluating the condition ($x ||= $y)
by Anonymous Monk on Aug 26, 2024 at 09:31 UTC | |
by ikegami (Patriarch) on Aug 26, 2024 at 13:42 UTC |