in reply to Re^3: Perl Out of memory error in thread Perl Out of memory error
Thank you for your help. I replaced the $buf_size with the $file_size and it started working. But still, there is a better way to do this without first reading the entire file. I can still see possible memory issues if the files are really big. If the trailer record is the last one in the file, I could use seek() and File::ReadBackwards to get that trailer record. But I do not know how to do that yet, so I’m still learning about that function.
|