in reply to concatening strings

Creating $new to hold every element of @ddts is as easy as my $new = (join '', @ddts);

As for the rest of your post, I'm not sure I understand exactly what you are looking for. Please give us an example of the desired output.

Replies are listed 'Best First'.
Re: Re: concatening strings
by bory (Beadle) on Nov 07, 2003 at 16:56 UTC
    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
      Can you show me what your current output is and how you want it to look?
      A reply falls below the community's threshold of quality. You may see it by logging in.