in reply to Re^2: Perl Out of memory errorin thread Perl Out of memory error
See seak and File::ReadBackwards and perlintro