in reply to Parsing CSV file ?s

I believe Text::xSV by our very own tilly will do what you want.

--
my $chainsaw = 'Perl';

Replies are listed 'Best First'.
Re: Re: Parsing CSV file ?s
by hossman (Prior) on May 17, 2002 at 07:52 UTC
    I haven't seen tilly's node before, but i've had some success using CPANs Text::CSV_XS on fields with embedding newlines by with the binary=>1 option...
    my $csv = new Text::CSV_XS({'binary' => 1}); my $fh = wraphandle(\*STDIN); my $columns = 1; while ($columns = $csv->getline($fh) and defined $columns and scalar(@$columns)) { # do stuff with @$columns }