chomp $array[3]; $array[3] .= "my newline goes here\n";