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})
33 use Text
::CSV qw
/csv/;
35 no if ($] >= 5.018), 'warnings' => 'experimental::smartmatch';
36 do '/usr/lib/tool/perl5/tabdata/common.pl' or die "$@";
43 if(my ($optname, $value) = /^--([^=]+)(?:=(.*)|)$/)
45 $value = 1 if not defined $value;
47 $csv_opts{$optname} = $value;
51 die "$0: unknown argument: $_\n";
55 $Data = csv
(in=>\
*STDIN
, %csv_opts);
59 print join($FS, map {escape_tabdata
($_)} @
$row).$RS;