use strict; use warnings; my $run = 1; while () { next if $run && m/^\n/; print; $run = m/^\n/; } __DATA__ data as per sample