Hi Utilitarian
I've been playing around with Rakudo a little too. I don't know the why of it but it seems that the existence (or not) of a space between a loop or conditional statement and the opening curly-brace is significant. For instance this works as intended:
#!/usr/bin/perl6
use v6;
my $var="Does this work";
say $var;
for $var.split(' ') -> $word {
if $word eq 'work' {
say "end of string";
}else
{say "getting there...";
}
}