Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
See, I have the script, which is run from the web, which writes to a data file. I need to read the data from a file, modify it, and write it back, but I dont want a different instance of the script to append new data to the file before I write back to it in the current instance or I might lose the new information. So, since I can't open it for reading and writing in the same filehandle, i need some sort of workaround, but I can't seem to work out how.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: FreeBSD reading/writing workaround?
by chipmunk (Parson) on Apr 25, 2001 at 08:08 UTC | |
by Anonymous Monk on Apr 26, 2001 at 07:48 UTC | |
|
Re: FreeBSD reading/writing workaround?
by hdp (Beadle) on Apr 25, 2001 at 08:16 UTC | |
by Anonymous Monk on Apr 26, 2001 at 08:17 UTC | |
by hdp (Beadle) on Apr 26, 2001 at 08:39 UTC | |
|
check permissions, use flock
by gregw (Beadle) on Apr 25, 2001 at 08:58 UTC |