Ingo Weiss wrote:
I was wondering: When writing CGIs that write to a data fle, do we
need to be concerned about the case where one CGI instance opens,
modifies and changes a data file while it's still open from another
CGI instance, creating version problems? Or is this somehow taken
care of?
Normally you need to be concerned about it. The fact that a program is
invoked via CGI makes no difference in this respect.
The flock() function is one way to deal with it in Perl. See "perldoc
-f flock".
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>