in reply to How do I remove lines from a file...

Here's how I would do it. There's probably a better way though :-) I'm not sure how to modify my code to use return 0, but here it is:
my $removing = 0; while (<>) { if (/^MYTAG1/) { $removing = 1; } elsif (/^MYTAG2/) { $removing = 0; } print unless $removing; }