in reply to Re: I should've known better!
in thread I should've known better!
In Perl 5 my $var; ... for $var (...) {...} doesn't alter the contents of the $var global to the for loop. Is that true for both the -> and <-> variants of the Perl 6 for loop illustrated above?
I presume you can for @array <-> my $var {...} in Perl 6 to make the scope of $var obvious.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: I should've known better!
by moritz (Cardinal) on Sep 14, 2009 at 14:16 UTC |