Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 having an uproarious good time at the Monastery: (10)
As of 2014-12-26 07:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (167 votes), past polls