in reply to Re: Using ternary operator as lvalue in push
in thread Using ternary operator as lvalue in push
I even counter-checked (!) it with:# This is perl, v5.8.7 my @a = (1,2,3); my @b = (4,5,6); push 1==1 ? @a : @b, "foo"; print "a=@a b=@b\n";
to verify that the "foo" was pushed into @b.push 1==0 ? @a : @b, "foo";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Using ternary operator as lvalue in push
by FunkyMonk (Chancellor) on Aug 01, 2007 at 10:38 UTC |