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