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.";
In reply to Re: Re: perl 1-liner to join a list?
by sauoq
in thread perl 1-liner to join a list?
by bfdi533
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |