in reply to Re^3: Surprised by Perl parse of ternary operator
in thread Surprised by Perl parse of ternary operator
Can Ruby or PHP do that?
No, at least Ruby seems to lack a concept of a "variable" lvalue. (foo = bar) = 5 gives a syntax error, and x < mid ? lo : hi = x gets parsed as x < mid ? lo : (hi = x)
|
---|
In Section
Seekers of Perl Wisdom