foreach my $param (@params) { ... } foreach my $file (@files) { ... }