in reply to How do I remove lines from a file...
while (<>) { print unless $count = /^MYTAG1/ .. /^MYTAG2/ and not $count =~ /E0/; } [download]
-- Randal L. Schwartz, Perl hacker