in reply to Re: Using ternary operator as lvalue in push
in thread Using ternary operator as lvalue in push

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.