in reply to Large text files into arrays, accessing final elements
Perhaps you should use File::ReadBackwards to read the lines close to the end of the file.