Great work !!
ehm, yeah, better use XML and find a way for a strict DTD to avoid minor bugs arising from spelling errors and create an appropriate XSLT to convert from XML into what you need in your ecd file, so you parse xml but deliver *.ecd files.
Mhm, I guess thats a point for perl in processing XML, eh ?
Have a nice day All decision is left to your taste