in reply to quick and safe way to deal with this?
I tried using diff but it did't work
Strange, your copy must be broken because this is exactly what diff does. And it will be far faster than any perl solution,
Or maybe you just used it wrong?