On 11/20/05, Ingo Blechschmidt <[EMAIL PROTECTED]> wrote: > sub foo (*@;AoA) { @;AoA } > > my @array1 = <a b c>; > my @array2 = <d e f>; > > my @AoA = foo @array1, @array2; > say [EMAIL PROTECTED]; # 2?
1 > say [EMAIL PROTECTED]; # a b c? a b c d e f However, my @AoA = foo(@array1; @array2); # all of Ingo's predictions are now correct > foo 1, 2; > # dies (neither 1 nor 2 are arrays)? Nope. The return value would be [[1,2]]. > foo $arrayref1, $arrayref2; > # dies (neither $arrayref1 nor $arrayref2 are arrays)? Returns [[$arrayref1, $arrayref2]] (a three-dimensional array). > foo(); > # works, +foo() is 0? Hmm. Hard to say whether that would be [] or [[]]. Luke