use strict; use warnings; use 5.012; while () { chomp; print "$_ "; say unless $_; } __DATA__ this is a line which is part of a sentence. And this is the second sentence in the target paragraph. This should be the start of a new paragraph ....