in reply to parsing of large files
By setting the input line separator $/ to whatever the tag marking your sections is, you can slurp the entire section and treat it as a line.
TStanley
--------
It is God's job to forgive Osama Bin Laden. It is our job to arrange the meeting -- General Norman Schwartzkopf