in reply to Re^2: going back to a specific line for reading.
in thread going back to a specific line for reading.

If your files aren't enormous, you can dump them line by line in an array, and then parse through that. Then it's easy to go back (or forward) a few lines.

If your file are big, you can replace the array transparently with Tie::File.

  • Comment on Re^3: going back to a specific line for reading.