in reply to Making CSV Files from Tab Delimited Files
I agree that Text::CSV_XS is probably the way to go though.#!/usr/bin/perl use strict; use warnings; my $filename = 'file.tabs'; local @ARGV = ($filename); local $^I = '.bac'; while (<>){ chomp; $_ = join(',', map {qq{"$_"}} split "\t") . "\n"; print; }
|
|---|