in reply to updating/modifying line in a file

You should use a real database to store the userdata, as you will very likely get bitten by race conditions and locking a single line of the userlist file will not work.

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Replies are listed 'Best First'.
Re^2: updating/modifying line in a file
by sgifford (Prior) on Jun 04, 2006 at 23:05 UTC
    CountZero is definitely right that using a database will be easier and more efficient than dealing with text files and locking. And remember that DB_File and DBD::SQLite count as databases, even though they don't require any kind of server.