foreach my $outer (@array) { foreach (@otherarray) { } }