for my $i3 (1..9) { # ... #### for my $i (0..$#textarray) { # ... #### use strict; use warnings;