class X::Syntax::P5 does X::Syntax { }
Syntax error thrown when some piece of code is clearly Perl, not Raku.
For example
for my $a (1, 2) { };
dies with
===SORRY!=== This appears to be Perl code
Compilation error due to use of Perl-only syntax
class X::Syntax::P5 does X::Syntax { }
Syntax error thrown when some piece of code is clearly Perl, not Raku.
For example
for my $a (1, 2) { };
dies with
===SORRY!=== This appears to be Perl code