Are the following all legal and equivalent?
for 1..10 -> $a, $b { say $a, $b };
for 1..10 { say $^a, $^b };
sub foo ($a, $b) { say $a, $b }; for 1..10 &foo;
What happens with:
for 1..10 -> [EMAIL PROTECTED] { say @a };
-- Rod Adams
Are the following all legal and equivalent?
for 1..10 -> $a, $b { say $a, $b };
for 1..10 { say $^a, $^b };
sub foo ($a, $b) { say $a, $b }; for 1..10 &foo;
What happens with:
for 1..10 -> [EMAIL PROTECTED] { say @a };
-- Rod Adams