Joseph L. Casale wrote:
I have to search for text strings in files and then do something with the line that matches in one scenario and in another I need to store the contents of the following n lines.

In the first requirement I think I have it beat, but I am lost on the second. I thought I might be able to search for the line I need and store its line number as n, then read the next n+[1...4] lines and store them.

How does one accomplish that, or is there a better approach?

What you described in English sounds just right to me. How about posting some code, and somebody may be able to point you in the right direction.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to