|
|
| more useful options | |
| PerlMonks |
Re: Perl6, modifying @*INCby moritz (Cardinal) |
| on Aug 05, 2010 at 15:49 UTC ( #853170=note: print w/ replies, xml ) | Need Help?? |
|
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.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||