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 expected
Rakudo is cor
I'm sorry, that is:
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 expected
current instr.: 'test' pc 162 (EVAL_13:64)
called from Sub '_block11' pc 85 (EVA