in reply to Updating files

Your approach is fine, as long as there will only be one process working on this data at a time. If that ever changes, the suggestion above about using dbm files is probably the way to go.

Incidentally, Storable is faster and might be worth switching to if you don't need the file to be human readable.