Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by linuxer (Deacon)
on Jul 17, 2009 at 22:28 UTC ( #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
Node Status?
node history
Node Type: note [id://781204]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2014-07-30 00:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls