foreach my $outter_element ( @outter_array ) { foreach ( @inner_array ) { print "$outter_element, $_\n"; } }