That offers no protection in a standard CGI environment. If you had multiple threads within this program it would be useful. In this case, there are multiple processes which could be accessing your file simultaneously. You'll need a filesystem-level mechanism to manage file locking. There are plenty of nodes that describe how to use flock appropriately.
In reply to Re: How to use Storable in CGI scripts
by chromatic
in thread How to use Storable in CGI scripts
by kingman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |