It's an XY problem, the use case wasn't ternary from the beginning.
But you're welcome to impress us with a better solution.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re^5: RFC: "assignary" operator ?= :
by LanX
in thread RFC: "assignary" operator ?= :
by richard.sharpe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |