Talk:Inverted syntax: Difference between revisions

Line 53:
 
I imagine that the inverted syntax shown here could work in some version of perl6. But I do not yet have any working implementation of perl6 yet, so I do not know if there are additional issues -- Raduko? Pugs? Not yet implemented?. Anyways, I think this one could use some clarity. --[[User:Rdm|Rdm]] 14:21, 6 June 2011 (UTC)
 
:Ok, no, this is valid perl5, the issue was that the traditional and inverted examples were not accomplishing the same end.
 
:<lang>$ perl -le '$ok= 1; $a= 9; $b= 2; $c= 3; ($ok ? $b : $c) = $a;$,=" "; print $a,$b,$c,$ok'
9 9 3 1</lang> --[[User:Rdm|Rdm]] 14:30, 6 June 2011 (UTC)
6,951

edits