in reply to Re^2: Convert CSV file to TAB delimited
in thread Convert CSV file to TAB delimited
Because of a small error: one comma too many :)
while (<$csv_file>) { s/\Q$sep\E/\t/g; print $tab_file, $_; # ^- That comma should not be there }
Other than that, I still think you ought to look into the proposed Text::CSV_XS or Text::CSV solutions.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Convert CSV file to TAB delimited
by TCM (Acolyte) on Sep 23, 2010 at 17:31 UTC |