in reply to Processing text file in reverse-order linewise

Tie::File reads the file from the front, memorizing the position of the lines within the file. Tie::File is therefore really fast at random access, but uses up a log of memory if you're just going to read the file from the end.

File::ReadBackwards really does read the file from the end, using a minimal amount of memory.

  • Comment on Re: Processing text file in reverse-order linewise