in reply to wdiff in perl?

On thing you may want to consider is to use a source control system like Subversion or CSV. I personally use Subversion. It has built in functionality to perform some extensive diffs between different revisions of a specific file. You can choose to restore all or part of a previous revision. This has certainly saved me in the past :)

Thanks Tanktalus! I meant CVS :)

Hope this helps