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.


Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^4: Convert CSV file to TAB delimited
by TCM (Acolyte) on Sep 23, 2010 at 17:31 UTC
    Thank you all for taking the time to reply to my question, I really appreciate it!! Removing the comma where Tux had indicated did the trick. I don't think I would have ever figured that one out... Once again, thank you all for your time TCM