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" ); }
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 |