Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Reading a VERY LARGE file with SINGLE line as content!

by linuxer (Curate)
on Jul 17, 2009 at 22:28 UTC ( [id://781204]=note: print w/replies, xml ) Need Help??


in reply to Reading a VERY LARGE file with SINGLE line as content!

I don't see a problem with your code. I tried it on my machine and it worked fine. It just takes some time to read the data from disk, almost 10 seconds...

What did you do to investigate this issue?

Did you make sure, that the script really hangs at that point?

Maybe the data is read correctly and the script hangs in a loop afterwards?

Right now, it is just guessing what might be happening in the background...

Can you provide more details?

You could also try to use read or sysread to read chunk by chunk from the filehandle. I think it will take more time, but it would try to read the data in "one run"...

  • Comment on Re: Reading a VERY LARGE file with SINGLE line as content!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-20 16:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found