I have a perl project, one of the module in this project is writing some data into a file(specific to host). While running this project more than once at the same time, data in the file gets collpased. Because, more than one process is writing to the file at the same time. How to lock the file handle of that file? How to unlock the file handle once writing/reading done?
Thanks N Advance, Kavitha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |