loop around your code (which takes the place of the "...").while(<>) { ... ; print }
is evaluated as "a space concatenated with the next line read from the input"." " . <>
And run it through the code above. Here's what happens:one two three four
--ZZamboni
In reply to Re: codeperl -pe 's/\n/
by ZZamboni
in thread codeperl -pe 's/\n/" " . /e' data/code
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |