Syntactic Confectionery Delight | |
PerlMonks |
Re: reading a changing fileby wind (Priest) |
on Jun 07, 2011 at 16:07 UTC ( [id://908516]=note: print w/replies, xml ) | Need Help?? |
Doing multiple open and close statements is the correct way to go here. It clearly documents that the file might be changing in the interim 10 seconds wait. You might considering doing a shared read lock using flock, but I doubt that it's a strong need for you nor that the other process would respect it.
In Section
Seekers of Perl Wisdom
|
|