More readable, more versatile:local $/ = ''; while (<>) { next if /\A.*\nD$/m; print; }
local $/ = ''; while (<>) { chomp( my @rec = split /^/m ); my $hdr1 = shift(@rec); my $hdr2 = shift(@rec); my %rec = @rec; next if $hdr2 eq 'D'; print; }
In reply to Re: delete lines till
by ikegami
in thread delete lines till
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |