On 8/9/07, sivasakthi <[EMAIL PROTECTED]> wrote: snip > > perldoc -f tell > > perldoc -f seek > > http://search.cpan.org/~mgrabnar/File-Tail-0.99.3/Tail.pm > > Thanks for ur suggestions....In that which method is better solution???
Depends on what you are doing. If the program run continuously then File::Tail is better. It has logic to handle thing like the file being truncated, moved, etc. However, if the program is going to run occasionally (say every hour), then tell and seek are a better fit. The downside to using tell and seek is that you have to handle things like someone having deleted the file between runs yourself. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/