Hi, You can always read a file backwards until you reach a position that was already processed. This can be done by using File::ReadBackwards.
Hope that helps Yaron Kahanovitch ----- Original Message ----- From: "sivasakthi" <[EMAIL PROTECTED]> To: "beginners perl" <beginners@perl.org> Sent: Wednesday, August 8, 2007 3:09:26 PM (GMT+0200) Auto-Detected Subject: How to read a very large file?? Hi Guys, I have a very large file. It may be contain 1lac lines.. also it length is increased in dynamically.. Each time ( per 5 min) i need to read the contents from file & do some work .. Suppose i have read the lines for first 5 min then after some time it reads the same line also , so it take more time & it is a waste of time.. The code is following, open FF, "/tmp |" || die "can't access log file\n"; while (<FF>) { chomp; // do some work.. } close(FF) Could u help me to solve the pbm?? Thanks, Siva -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/