in reply to Parsing and extracting data from files.
Hola, Initiate. Mine is not a direct answer to what seems to be your petition (elegant TOC file parsing) but I can't resist but to point out a dusty path that seems aligned exactly in the direction you are going: TheDamian teaching Perl OO via creating a CD::Music class.
That path is a bit rocky and disused. Most monks seem to prefer following Moose tracks....
In Section
Seekers of Perl Wisdom