in reply to Intermixed perl?

Sounds like you want a pre-processor.... something that runs through the file parsing bits and returns a command file for your interpreter. Which works as long as all the data you need is available ahead of time.

That way you don't have to change any of your parsers.

                - Ant
                - Some of my best work - (1 2 3)