laziness, impatience, and hubris | |
PerlMonks |
Re^2: How to loop over two lines, alter a value in the current line and save it to the previous line?by rjc33 (Sexton) |
on Jan 07, 2016 at 11:02 UTC ( [id://1152162]=note: print w/replies, xml ) | Need Help?? |
Hi, thanks for your very quick answer. Yes, I would like my modifications reflected in $previous_line in the next iteration of the loop, so your suggestion makes a lot of sense. Unfortunately that change seems to make $previous_line always equal the first line of the file for some reason
In Section
Seekers of Perl Wisdom
|
|