"be consistent" | |
PerlMonks |
(Ovid) Re: 'Tailing' a File?by Ovid (Cardinal) |
on Jan 11, 2001 at 05:14 UTC ( [id://51045]=note: print w/replies, xml ) | Need Help?? |
You want something like the following:
The seek above convinces Perl that you're no longer at the EOF, thus allowing you to continuously read from your file as new lines are added. However, the real problem is: what's wrong with using a module? If it's reliable and tested, so what?
Cheers, Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In Section
Seekers of Perl Wisdom
|
|