Have you looked at the module Algorithm::Diff? This might be extremely relevant to your cmpcol script.
In reply to Re: cmpcol by rinceWind in thread cmpcol by graff