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
|
|---|