in reply to Re^5: How to loop over two lines, alter a value in the current line and save it to the previous line? in thread How to loop over two lines, alter a value in the current line and save it to the previous line?
Apologies, I should have said that it makes the values within @previous_columns always refer to those in the first line. So for example in the 2nd iteration of the loop @previous_columns holds values from the first line, when I want to hold values from the second line (while the loop is performing actions on the 3rd line).
|