in reply to Changing records in a text file

Doing this with a text file is going to be dangerous, I think, no matter what method you use. There are going to be concurrency issues unless you're very careful and have complete control of the environment. And even if you have these guarantees today doesn't mean you'll still have them at some later date.

A proper database using transactions is really the right way to handle this, I think.

Replies are listed 'Best First'.
Re^2: Changing records in a text file
by NiJo (Friar) on Nov 15, 2006 at 19:58 UTC
    DBD::CSV eases the transition and saves us from reinventing methods for CSV file updates.