BEGIN{ push @*INC, 'C:\Rakudo\lib';}
Add a space before the opening curly: BEGIN { @*INC.push( 'C:\Rakudo\lib' );}
The reason is that {...} directly after a statement is parsed as a postcircumfix, which is very handy if you want to access hash elements like %hash{$key} (but which is intentionally not special-cased to hashes).
The error message could be improved, though.
In reply to Re: Perl6, modifying @*INC
by moritz
in thread Perl6, modifying @*INC
by molecules
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |