in reply to perl 1-liner to join a list?
perl -lpe '$\=(eof)?$/:","' file
Update: or this
perl -l54pe '$\=$/if+eof' file
--
John.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: perl 1-liner to join a list?
by sauoq (Abbot) on Nov 11, 2003 at 22:17 UTC | |
by Roy Johnson (Monsignor) on Nov 12, 2003 at 15:23 UTC | |
by thelenm (Vicar) on Nov 11, 2003 at 22:53 UTC |