http://qs321.pair.com?node_id=870052


in reply to Skip 2 new lines

A 100% regex-free solution:
use strict; use warnings; use 5.012; while (<DATA>) { 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 ....
Output:
this is a line which is part of a sentence. And this is the second sen +tence in the target paragraph. This should be the start of a new paragraph ....

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James