[TriLUG] Perl CSV
Brian McCullough
bdmc at buadh-brath.com
Thu Nov 14 14:46:29 EST 2013
On Thu, Nov 14, 2013 at 02:21:37PM -0500, Brian McCullough wrote:
> I am sure that somebody here has some experience with the Perl Text::CSV
> mondule.
Call off the dogs, thanks.
> I am trying to use it again, but every row, after $csv->parse, is
> reporting that there is only one element in the array.
>
> $status = $csv->parse( $row ) ;
> @cols = $csv->fields ;
> $col_cnt = @cols ;
I found that I was much more successful removing the above, and
replacing it with:
@cols = @$row ;
$col_cnt = @cols ;
Go figure, as they say.
More information about the TriLUG
mailing list