in reply to RE: Re: codeperl -pe 's/\n/
in thread codeperl -pe 's/\n/" " . /e' data/code

The purpose of the snippet is precisely to join the lines of the file two at a time. So yes, the output you give is the one you get, but that is the intended effect. The -p adds an implicit print at each iteration of the implicit loop.