Luke Palmer <[EMAIL PROTECTED]> wrote:
> What is output:
>
> sub foo($x, ?$y, [EMAIL PROTECTED]) {
> say "x = $x; y = $y; z = @z[]";
> }
>
> my @a = (1,2,3);
> foo($x, @a);IANALarry, but I'd think x = ($x's value); y = 1 2 3; z = The $y is implicitly typed Any, and Ref of Array (or maybe just Array) is consistent with Any; hence $y receives [EMAIL PROTECTED] -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker "I used to have a life, but I liked mail-reading so much better."
