perl -wle'my $last; while (my $line = ) { last if $line =~ /^$/; print \$line; $last = \$line; }'