If you want to be safe you should use Text::CSV_XS:
... use Text::CSV_XS; my $reader = new Text::CSV_XS { 'sep_char' => ',', 'quote_char' => '"', 'escape_char' => '\\', 'binary' => 1, }; $data = $reader->getline(IN); print OUT "$data->[0] $data->[1]\n$data->[2]\n"; ...
Jenda
In reply to Re: csv to flat-file
by Jenda
in thread csv to flat-file
by Cockneyphil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |