in reply to Re: perl 1-liner to join a list?
in thread perl 1-liner to join a list?
You've still got me by one character... perl -0pe 'y/\n/,/;s/,$/\n/'
Update: But, wait!
:-)perl -0pe 's/\n(?!$)/,/g'
-sauoq "My two cents aren't worth a dime.";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: * Re: perl 1-liner to join a list?
by Roy Johnson (Monsignor) on Nov 12, 2003 at 15:23 UTC | |
Re: Re: Re: perl 1-liner to join a list?
by thelenm (Vicar) on Nov 11, 2003 at 22:53 UTC |