Yup. The ternary conditional operator (?:) has a higher precendence than assignment (=). A ? B : C = 1 is treated as (A ? B : C) = 1 In your case, C is a splice, which you can't modify. Try split(@history,$i--,1) = 1 and you'll get the same error.
In reply to Re: Ternary Operator: Condition-Negation
by dws
in thread Ternary Operator: Condition-Negation
by PetaMem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |