Single statement, already running in
pugs showing:
- cool new say builtin - ok, everybody knows about this now;
- junctions;
- the new conditional operator C<?? !!> replacing Perl 5's C<?:> - think huffmanization!
- (good old for statement modifier that's still there, showing clearly that Perl 6 is still very much Perl;)
- the quick, agile and intuitive sintax to get the $n elements list 0..($n-1), ^$n.
pugs> say "$_ => ", $_ == 3|5|7 ?? 'ok' !! 'no' for ^10
0 => no
1 => no
2 => no
3 => ok
4 => no
5 => ok
6 => no
7 => ok
8 => no
9 => no
undef