good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
The problem is that the assignment has a looser precedence than the ternary op. See also: perlop, Confused by Perl ternary operator, ternary operator. Why does the Perl conditional operator not do what I expect? and many other threads.
In reply to Re: Question about ternary operator
by moritz
|
|