foreach(@conf){ my $line = $conf[$i]; # the reason for doing this weird thing my $t. = "".$i;