I have a header file that has a large structure in it. I need to read this structure using some program, and do some operations on each member of the structure and write them back.
For example, I have a structure like
const BYTE Some_Idx[] = { 4,7,10,15,17,19,24,29, 31,32,35,45,49,51,52,54, 55,58,60,64,65,66,67,69, 70,72,76,77,81,82,83,85, 88,93,94,95,97,99,102,103, 105,106,113,115,122,124,125,126, 129,131,137,139,140,149,151,152, 153,155,158,159,160,163,165,169, 174,175,181,182,183,189,190,193, 197,201,204,206,208,210,211,212, 213,214,215,217,218,219,220,223, 225,228,230,234,236,237,240,241, 242,247,249};
Now I need to read this and apply some operation to each member variable and create a new structure with a different order, for example:
const BYTE Some_Idx_Mod_mul_2[] = { 8,14,20, ... ... 484,494,498};
Is there any Perl library for this? If not Perl, then something else like Python is also good.
Can anyone help !!!