|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
(Ovid) Re: 'Tailing' a File?by Ovid (Cardinal) |
| on Jan 11, 2001 at 00:14 UTC ( [id://51045]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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
|
|
||||||||||||||||||||||||||||