I'm trying to write a perl script that will take inptus from a form on one page, e.g name, comments, and e-mail and add it to another one on the site.
I would like to know how I can lock the file so that two people can't simultaneously write to the file.
The comments are added at the bottom of the page, and if there is no lock on the file, one person is bound to overwrite someone else's coments. It is for a memorial for a friend who passed away.
Thanks. Also, if there is a better and simpler way of doing so with other languages or technologies. I'm open to suggestions.