On Tue, Dec 02, 2008 at 02:08:08AM +0300, ruslan usifov wrote:
> sub test(@test is copy, $as)
> {
> @test[0] = 123;
> };
>
> my @test = (1, 2, 3, 4);
> test(@test);
>
> print @test[0];
>
> After that perl6.exe will produce:
>
> too few arguments passed (1) - 2 params expectedRakudo is correct here -- the C<test> sub is expecting two parameters (@test and $a), and the call to C<test> is only providing one. Pm
