in reply to match and remove across multiple lines

I'm assuming you only want to delete the first Header 1 section.

while ( $line = <FILE> ) { # skip section 1 chomp; last if $line eq "END LIST"; } while ( $line = <FILE> ) { # do stuff with sections two and three }

--
TTTATCGGTCGTTATATAGATGTTTGCA