Yes, the elements in the statement are foreachrepeated in order.
Your question may arise due to confusion over the iteration of the hash elements:
my %hash = ('a' => 1, 'b' => 2, 'c' => 3);
foreach my $key (keys %hash) { print $key } ;
, - Perl ( - Perl ). keys, "" -, foreach.