in reply to Problem with SEEK to go back/forward a few lines.

How big is your log file? If not very big, you might as well load the entire file into an array with chomp(@lines = <IN>); and then you don't have to worry about remembering the position in the file. If you want any line, just dereference the array with the linenumber.