in reply to flat file databases

Updating a file with new data is a common task. Take a look at perlfaq5 (Files and Formats) - the FAQ entitled "How do I change one line in a file" has a chunk of code that might help.