http://www.perlmonks.org?node_id=853170


in reply to Perl6, modifying @*INC

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.

Perl 6 - links to (nearly) everything that is Perl 6.