I need to convert a CSV file to a TAB delimited file using a perl script. I know you can convert from CSV to TAB from the command line using "perl -e ' $sep=","; while(<>) { s/\Q$sep\E/\t/g; print $_; } warn "Changed $sep to tab on $. lines\n" ' csvfile.csv > tabfile.tab", but how do you do this in a perl script?
Thank you!