I'm not a much of a coder, but a co-worker in my lab suggested that Perl would be a useful way to automate some data reformating that needs to be done and that it was fairly straight-forward even for a beginner.
Basically my data is in a very human readable format right now in text files on my computer. I would like to turn this information into a table format so I can feed it into another program I am using.
The data is formated roughly as follows:
Then a new case begins in the file.
What I would like to do is go through one case and create a row in a table for each person involved in the case. I need to keep track of the actions taken after each question (a person can give a maximum of 5 responses per round), and what the second question was. I would also like the information about which seat they were sitting in. All of the information is there, I just need help figuring out how to pick through one case at a time (there can be around 100 cases per text file) and matching up the people with their actions in a table.
Is this a reasonable thing to accomplish with Perl? Is there a better tool? Any pointers for getting started? Thanks a bunch for any insight.