foreach my $outer (@array) {
foreach (@otherarray) {
}
}
I've been lead to understand that you will be able to access topics (Perl 6 speak for $_) "above" your current scope in Perl 6, but it will be considered bad programming practice to actually use it. It will be more for debugging tools that e.g. will allow you to show what the current topic is while you're stepping through the code.
That's what I remember of various Perl 6 talks and reading about it... Of course, it may have all be changed again by now... ;-)
Liz |