~/src> perl -pe "split',';$_=join',',@_" smoke.txt Can't modify concatenation (.) or string in scalar assignment at -e line 1, at EOF Execution of -e aborted due to compilation errors.