Something like:
use strict; use warnings; my $run = 1; while (<DATA>) { next if $run && m/^\n/; print; $run = m/^\n/; } __DATA__ data as per sample
with i/o adjusted for your requirements should do what you need to clean up multiple line breaks.
In reply to Re^3: Double blank lines to single blank line
by GrandFather
in thread Double blank lines to single blank line
by proactive1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |