XP is just a number | |
PerlMonks |
Printing process of programby k2 (Scribe) |
on Jul 10, 2001 at 04:41 UTC ( [id://95207]=perlquestion: print w/replies, xml ) | Need Help?? |
k2 has asked for the wisdom of the Perl Monks concerning the following question:
Hi! I'm writing a program that will handle huge textfiles and in order to see the progress I wrote this bit of code that prints the procentage of the file that has been delt with and on witch line in the text the program is on. But it's not working out the way I was expecting. It works fine on small text-files, but when I run it on files that are 2-3 Gb the procentage-counter counts from -0% to aprox. -115% and then stops while the part that prints the line the program is on keeps running... Anyone got any ideas? This might have been up to discussion earlier, if so please point me in the right direction. Regards k2 -------------------
Back to
Seekers of Perl Wisdom
|
|