![]() |
|
No such thing as a small change | |
PerlMonks |
Re^3: file reading / writing collisionsby sgt (Deacon) |
on Sep 11, 2007 at 13:41 UTC ( #638298=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|