... foreach my $attribute (@attributes) { ...