polr has asked for the wisdom of the Perl Monks concerning the following question:
I want to ammend the first line, only if the second line contains a specific word. Its OK till I want to go back a line. If usin while (<>) I just fall throught the file line by line, but I want to read a line then jump back to the line before can anyone help. The pattern of the file within the ***s may be repeated several hundred times************************ <word> word <word> word <word> word word word <word> word <word> word word <word> word word <word> word word **************************
Originally posted as a Categorized Question.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: text files
by bmccoy (Beadle) on Dec 13, 2001 at 00:40 UTC | |
|
Re: text files
by ariels (Curate) on Dec 13, 2001 at 13:07 UTC |