Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: I should've known better!by GrandFather (Saint) |
on Sep 11, 2009 at 03:01 UTC ( [id://794677]=note: print w/replies, xml ) | Need Help?? |
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. True laziness is hard work
In Section
Meditations
|
|