Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^3: file reading / writing collisions

by sgt (Deacon)
on Sep 11, 2007 at 13:41 UTC ( #638298=note: print w/replies, xml ) Need Help??

in reply to Re^2: file reading / writing collisions
in thread file reading / writing collisions

Well you have to test for your system, but usually perl's flock will block, and you are right it's a problem as you might end up with too many processes! I prefer non-blocking handles and do the polling myself. 'perldoc -f fcntl' will tell you how to set up non-blocking flags.

cheers --stephan
  • Comment on Re^3: file reading / writing collisions

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2023-03-24 19:19 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (61 votes). Check out past polls.