for @list -> $a { # here $a is local'ized in the perl 5 sense } #### for @list { say $^a; # $^a is only available in this block } #### my $a; for @list -> $=a { # $=a is the "reused" version of $a } # here $a has the last value of $=a
## for @list { say $^a; # $^a is only available in this block } ##
## my $a; for @list -> $=a { # $=a is the "reused" version of $a } # here $a has the last value of $=a