You might want to look at the h2ph script that ships with Perl.
Cheers,
JohnGG
In reply to Re: Using C-style .h as constants by johngg in thread Using C-style .h as constants by gri6507