in reply to perl: How to comapre and manipulate csv file in perl?

Cross-posted at StackOverflow

You wrote:

my $csv = Text::CSV->new({ sep_char => ",", binary => 1, auto_diag => 1 });

but your data has no commas in it. How do you expect that to work?