I too am on a Perl-less machine, and don't have a lot of experience but here are my two cents:
Won't the following:
push ($cond > 0) ? @a : @b , $elem;Evaluate the greater than comparison, but then try to push the result before the ternary operator gets a hold of it? The ternary operator, I know, has pretty darn low precedence.
In reply to Re^2: Using ternary operator as lvalue in push
by amarquis
in thread Using ternary operator as lvalue in push
by oha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |