in reply to Parsing a .h header file

Your best solution is to contract this out to someone (like me or any number of other monks) to do this for you on a project basis. You're wanting to do something that's relatively complicated, with serious potential for exceptions, and you've already admitted your Perl strengths are limited.

I'm not attempting to solicit your business (though I wouldn't complain if you gave it to me). I'm telling you that unless you're willing to put some serious time into this project, you're going to end up with a mess that won't do what you want it to do. At that point, you're either going to give up or contract someone anyways.

------
We are the carpenters and bricklayers of the Information Age.

The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6

... strings and arrays will suffice. As they are easily available as native data types in any sane language, ... - blokhead, speaking on evolutionary algorithms

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.