Skip Menu |

This queue is for tickets about the AnyData CPAN distribution.

Report information
The Basics
Id: 4289
Status: resolved
Priority: 0/
Queue: AnyData

People
Owner: JZUCKER [...] cpan.org
Requestors: taro-nishino [...] sam.hi-ho.ne.jp
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.08
Fixed in: (no value)



Subject: Method adConvert of AnyData-0.08 cannot convert CSV to HTMLtable.
I found that a below description returns error. print adConvert( "CSV", #6column CSV Data 'test.csv', 'HTMLtable', undef, {cols => 'col1,col2,col3,col4,col5,col6'}, ); The following is the above error: Can't use string ("hogehoge,foobar,hogehoge,foobar,") as an ARRAY ref while "strict refs" in use at /usr/lib/perl5/site_perl/5.8.1/AnyData.pm line 657 My platform is Solaris8. Currently, I use a bellow script to avoid the error: #!perl -w use strict; use AnyData; my $arrayref = adConvert( "CSV", #6column CSV Data 'test.csv', 'ARRAY', undef, {cols => 'col1,col2,col3,col4,col5,col6'}, ); print adConvert( 'ARRAY', [ [@{$arrayref->[0]}], map { [split /,/, $_] } @$arrayref[1..$#$arrayref] ], 'HTMLtable' ); __END__ But, this shall bring memory over for a big file. Lastly, I'm sorry that my English is very poor because I'm a Japanease. Taro Nishino
Date: Tue, 04 Nov 2003 22:33:52 +0900
From: Taro Nishino <taro-nishino [...] sam.hi-ho.ne.jp>
Subject: Re: [cpan #4289] AutoReply: Method adConvert of AnyData-0.08 cannot convert CSV to HTMLtable.
To: bug-AnyData [...] rt.cpan.org
RT-Send-Cc:
Thank you!