in reply to Re: Using ternary operator as lvalue in push
in thread Using ternary operator as lvalue in push
and randomly pushes the list onto one array or the other.my @x = my @y = (); push (False,True).pick ?? @x !! @y, <a b c>; say "x: @x[]"; say "y: @y[]";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using ternary operator as lvalue in push
by dada (Chaplain) on Aug 02, 2007 at 14:51 UTC | |
by polettix (Vicar) on Aug 02, 2007 at 14:57 UTC |