bh_perl has asked for the wisdom of the Perl Monks concerning the following question:
Actually I want to convert new line to be ",". As example:-
I have tried using s/\n/,/g, but its look not working as i want to be. Could somebody help me ? Thank you,Input data:- 1111 2222 3333 4444 5555 6666 and the output will be:- 1111,2222,3333 4444,5555,6666
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to convert new line to ","
by moritz (Cardinal) on Jul 24, 2008 at 09:29 UTC | |
by repellent (Priest) on Jul 25, 2008 at 08:07 UTC | |
by moritz (Cardinal) on Jul 25, 2008 at 08:40 UTC | |
by massa (Hermit) on Jul 25, 2008 at 09:37 UTC | |
by repellent (Priest) on Jul 27, 2008 at 02:35 UTC | |
|
Re: how to convert new line to ","
by eye (Chaplain) on Jul 24, 2008 at 10:41 UTC | |
|
Re: how to convert new line to ","
by poolpi (Hermit) on Jul 24, 2008 at 14:13 UTC | |
by moritz (Cardinal) on Jul 24, 2008 at 14:30 UTC | |
|
Re: how to convert new line to ","
by pjotrik (Friar) on Jul 24, 2008 at 09:37 UTC | |
by moritz (Cardinal) on Jul 24, 2008 at 09:56 UTC | |
by pjotrik (Friar) on Jul 24, 2008 at 10:14 UTC |