in reply to Re: -F and trailing empty fields
in thread -F and trailing empty fields

Maybe this is a quoting thing but on my linux box:

~/src> perl -pe "split',';$_=join',',@_" smoke.txt Can't modify concatenation (.) or string in scalar assignment at -e li +ne 1, at EOF Execution of -e aborted due to compilation errors.
--
I used to drive a Heisenbergmobile, but every time I looked at the speedometer, I got lost.

Replies are listed 'Best First'.
Re^3: -F and trailing empty fields
by tachyon-II (Chaplain) on Apr 30, 2008 at 17:38 UTC

    It is a quoting thing. On *nix s/'/tmp/g; s/"/'/g; s/tmp/"/g :-)

    perl -pe 'split/,/;$_=join",",@_' smoke.txt