7 csv2td - Transform CSV to tabular data format.
11 Read CSV data on STDIN.
12 Output tabular data to STDOUT.
16 Any option which Text::CSV(3pm) takes.
17 See C<Text::CSV->known_attributes> for extensive list.
20 csv2td --sep=';' --blank-is-undef=0 --binary
24 Text::CSV->new({sep=>";", blank_is_undef=>0, binary=>1})
28 Why there is no td2csv?
30 Why would you go back to ugly CSV when you have nice shiny Tabdata?
39 use Text
::CSV qw
/csv/;
41 no if ($] >= 5.018), 'warnings' => 'experimental::smartmatch';
42 do '/usr/lib/tool/perl5/tabdata/common.pl' or die "$@";
49 if(my ($optname, $value) = /^--([^=]+)(?:=(.*)|)$/)
51 $value = 1 if not defined $value;
53 $csv_opts{$optname} = $value;
57 die "$0: unknown argument: $_\n";
61 $Data = csv
(in=>\
*STDIN
, %csv_opts);
65 print join($FS, map {escape_tabdata
($_)} @
$row).$RS;