Help for this page
while (<>) { next if $_ =~ m/\n{1}/; if ($_ =~ m/\n{2}){s/\n{2}/\n/gs} elsif ($_ =~ m/\n{3,}){s/\n{3,}/\n\s/gs} }
while (<>) { if ($_ =~ m/\n{1}/) { ... print; } }
while (<>) { if ($_ =~ m/\S\n{2}\S/){ ... print; } }