You might want to have a look at tillys Text::xSV module...
In reply to Re: Comparing 2 csv files by Bloodnok in thread Comparing 2 csv files by meredib