in reply to Running Total Array or Hash

Without seeing your input file or the output you desire, it is hard to give a code example. However, I think a hash might be preferable to an array due to potentially easier access. perlintro