in reply to Re: Convert CSV file to TAB delimited
in thread Convert CSV file to TAB delimited

Small nitpicks, making it even easier:

use strict; use warnings; use autodie; use Text::CSV; my $csv = Text::CSV->new ({ binary => 1 }); my $tsv = Text::CSV->new ({ binary => 1, sep_char => "\t", eol => "\n" + }); open my $infh, "<:encoding(utf8)", "input.csv"; open my $outfh, ">:encoding(utf8)", "output.tsv"; while (my $row = $csv->getline ($infh)) { $tsv->print ($outfh, $row); }

otherwise a great reply!


Enjoy, Have FUN! H.Merijn