Hello all. I'm a research scientist with some familiarity with perl but am trying to do some work with tabular data and have no idea where to go from here. I can read in the data fine into several variables, mess with individual rows and export the data out fine. However, I'm stuck as to how to approach the main part of a new program. Here's the basic idea:
I need to find all occurrences when a specific variable is the same for three straight consecutive rows then sum the analyzer results (another column) for those three rows. I know how to read data in using foreach but have no idea how to manuipulate or look at the data in previous or earlier rows and store the analyzer results between different rows.
I've done a lot of googling and dug through my perl books to no avail. I would appreciate any input to get me going in the right direction. Thanks
I need to find all occurrences when a specific variable is the same for three straight consecutive rows then sum the analyzer results (another column) for those three rows. I know how to read data in using foreach but have no idea how to manuipulate or look at the data in previous or earlier rows and store the analyzer results between different rows.
I've done a lot of googling and dug through my perl books to no avail. I would appreciate any input to get me going in the right direction. Thanks