in reply to What is the best way to produce a delta data file?

You should really look at the unix command diff, it produces deltas of text files, and you can apply them with patch. Search for diff on CPAN will find some perl implementations or interfaces.

Alternatively you could use some kind of version control system like subversion (svn) or git.