$ perl -MO=Deparse,-p -e '1 ? $a = 3 : $b = 4' (($a = 3) = 4); -e syntax OK
You see it is parsed, not just the way you'd naively expect it.
In reply to Re^3: Question about ternary operator
by moritz
in thread Question about ternary operator
by merlinX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |