http://www.perlmonks.org?node_id=129653

polr has asked for the wisdom of the Perl Monks concerning the following question:

I am reading in a text file line by line. If the current line meets certain criteria, I want to modify the previous line.

Originally posted as a Categorized Question.