|Welcome to the Monastery|
Reading a VERY LARGE file with SINGLE line as content!by biswanath_c (Beadle)
|on Jul 17, 2009 at 22:08 UTC||Need Help??|
biswanath_c has asked for the
wisdom of the Perl Monks concerning the following question:
I have a requirement wherein i have to read a 124 MB file (could be even larger) but the filw has ONLY ONE line. So, when i try to do this:
The last line of this code : $data=<DAT>;
hangs - The CPU of my machine shoots to 74%. It does NOT reach 100%, but the script seems to just hang!
Can anyone suggest how i can handle this problem? I know that reading the file line by line is the best way but in my case, the WHOLE LARGE file has only one line! How can i solve this problem?
Thanks and regards