Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^4: Perl Out of memory error

by Anonymous Monk
on Oct 06, 2015 at 17:56 UTC ( [id://1143956]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1143956]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-23 06:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found