Front page | perl.perl6.language |
Postings from March 2005
Re: Optional binding
Thread Previous
|
Thread Next
From:
Yuval Kogman
Date:
March 6, 2005 17:03
Subject:
Re: Optional binding
Message ID:
20050307010308.GB9126@woobling.org
On Sun, Mar 06, 2005 at 02:13:09 -0700, Luke Palmer wrote:
> What is output:
>
> sub foo($x, ?$y, *@z) {
> say "x = $x; y = $y; z = @z[]";
> }
>
> my @a = (1,2,3);
> foo($x, @a);
And is
$a ==> foo $x;
The same?
--
() Yuval Kogman <nothingmuch@woobling.org> 0xEBD27418 perl hacker &
/\ kung foo master: /me groks YAML like the grasshopper: neeyah!!!!!!
Thread Previous
|
Thread Next