in reply to Re: Unsplit An Array
in thread Unsplit An Array

Not quite. That should be

{ local $,=''; local $\="\n"; print( @splitted_word ); }

or

{ local $"=''; print( "@splitted_word\n" ); }

See $,, $\ and $".

However, using join is less error-prone, more natural, shorter and more versatile (you can use it when you don't want to print).

print( join( '', @splitted_word ), "\n" );

Replies are listed 'Best First'.
ARRAY WAS MADE WHOLE AGAIN THANX
by virtualweb (Sexton) on Sep 29, 2008 at 12:48 UTC
    Ikegami: Thanx for your input a variation ofyourline of code did the trick @Make_Whole = join( '', @splitted_word ); I had tried the following prior to posting for help and hadnt work: @Make_Whole = join( //, @splitted_word ); It did work with commas however thanx again VirtualWeb