At first glance, Apache::ConfigFile looked the perfect fit. It parses Apache's config format and provides access to the results. Unfortunately, a closer look revealed:
Now, for a more complicated piece of functionality I might be inclined to stick it out and try to fix the module. But for this one the costs of working on old code definitely outweighed the benefits of building from scratch.
Thus, after a very enjoyable 4 solid hours of hacking, I give you Config::ApacheFormat, version 1.0. I hope you like it.
I'm always surprised by how much I really enjoy the act of creative programming. My day job is so often focused on designing, managing, bug fixing, etc. Writing new code reminds me that I really do like my job, the good part anyway.