in reply to Tie::Htpasswd
You may also want to consider having the module import and use some of the methods from Apache::Htpasswd, which already has a locking scheme.
Another possible problem is that you do not re-read the password file before writing it. If you script opens the file, and while it does other things another process writes to the file, you will wipe out whatever changes were made. The DESTROY function should only change what is needed, as opposed to writing out whatever you have saved. Consider this:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Tie::Htpasswd
by kayos (Sexton) on May 24, 2000 at 19:05 UTC |