http://www.perlmonks.org?node_id=442858


in reply to Reading a part of text file between markers

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

Alberto Simões