in reply to Parsing text sections

Grandfather has provided a specific solution. I do not know if CPAN offers a solution because this does not look like a standard format.

Consider this radically different approach. Store your data in a standard format, such as XML, then: