my $a; for @list -> $=a { # $=a is the "reused" version of $a } # here $a has the last value of $=a