Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: reading a changing file

by wind (Priest)
on Jun 07, 2011 at 16:07 UTC ( [id://908516]=note: print w/replies, xml ) Need Help??


in reply to reading a changing file

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.

Replies are listed 'Best First'.
Re^2: reading a changing file
by slogger (Initiate) on Jun 07, 2011 at 16:10 UTC

    Many thanks - wasnt sure if my method was too brute force and there was a more elegant way to do it!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://908516]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-24 18:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found