I try also with join but I don't understand why, if I have 2 elements in $new , the print line prints twice: one time the element o f the array @ddts + the first element of $new, and second time the same element of the array with the second element of $new. I belive that is because of the second for loop, exactly the value of $d. I want on the same line to have the element of the @ddts array and the elements of $new.
Thank you very much