use Text::CSV_XS;
...
my $csv_parser = Text::CSV_XS->new( {allow_whitespace => 1} );
my $fh_input = Tie::Handle::CSV->new("$inputfile", header => 1,
csv_parser => $csv_parser);
...
2011/3/10 许高飞 <flyh...@gmail.com>:
> --
> 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。
> 要向此网上论坛发帖,请发送电子邮件至 perl...@googlegroups.com。
> 要取消订阅此网上论坛,请发送电子邮件至 perlchina+...@googlegroups.com。
> 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。
>
--
Shu Cao
allow_whitespace
When this option is set to true, whitespace (TAB's and
SPACE's)
surrounding the separation character is removed when parsing.
On Mar 10, 6:01 pm, Shu Cao <shu...@gmail.com> wrote:
> 改成如下:
>
> use Text::CSV_XS;
>
> ...
>
> my $csv_parser = Text::CSV_XS->new( {allow_whitespace => 1} );
> my $fh_input = Tie::Handle::CSV->new("$inputfile", header => 1,
> csv_parser => $csv_parser);
>
> ...
>
> 2011/3/10 许高飞 <flyhig...@gmail.com>: