SSK wrote: What i am trying to do is,i have to run multiple perl programmes all at once to change the contents of a text file. -------------
As I see it you should build intelligence into your programs so that on one active program attempts open/read/write to the file at a time. If you are on a Win32 platform look into Win32::Semaphore and Win32::Mutex. I have successfully accomplished a similar task having many child processes logging to a common parent process log file using Win32::Mutex as a way for the process to determine if another is currently using the file. Also there is also flock to apply your own file lock. _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
