go ahead... be a heretic | |
PerlMonks |
Re: Processing text file in reverse-order linewiseby ikegami (Patriarch) |
on Aug 14, 2006 at 23:33 UTC ( [id://567365]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|