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?? |
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"...
In Section
Seekers of Perl Wisdom
|
|