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.
In reply to Re: Processing text file in reverse-order linewise
by ikegami
in thread Processing text file in reverse-order linewise
by tomazos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |