for my $outer ( 0..1 ) { for my $inner ( 5..6 ) { print $LOOPCOUNT[-1], "+", $LOOPCOUNT[-2], "\n"; } }