I am writing a perl script which will read in Ada and C files and separate each of the functions & procedures and put them each in a separate file (these separate files don't have to be compiled, so I don't need any include or header information, just the first line of the function/procedure to the last).
Any suggestions on how best to do this? Any useful perl modules that would help? Specifically I'm looking for how to find the beginning and end of each function/procedure.