in reply to Perl version of 'diff'?

I would put the data into a real database. Like postgres, perhaps SQLite is enough.
Boris