On Mon, Mar 07, 2005 at 03:03:08AM +0200, Yuval Kogman wrote: : On Sun, Mar 06, 2005 at 02:13:09 -0700, Luke Palmer 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); : : And is : : $a ==> foo $x; : : The same?
Nope, that's part of why we came up with pipes in the first place, You example (assuming you meant @a there) is equivalent to foo($x, undef, @a); or foo $x <== @a; or foo $x, z => [EMAIL PROTECTED] Larry