in reply to Reading a part of text file between markers

A first idea:
$/="\nEND\n"; while(<>) { # $_ contains a complete rule }

Alberto Simões