in reply to Re: Re: perl 1-liner to join a list?
in thread perl 1-liner to join a list?

So it's golf, is it? :-)

perl -lpe '$\=!eof&&","'

Update: Uh, hmm, just realized that doesn't quite do the same thing (gets rid of the trailing newline). Bah, details.

-- Mike

--
XML::Simpler does not require XML::Parser or a SAX parser. It does require File::Slurp.
-- grantm, perldoc XML::Simpler