Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

This queue is for tickets about the AnyData CPAN distribution.

Report information
The Basics
Id: 7751
Status: new
Priority: 0/
Queue: AnyData

People
Owner: Nobody in particular
Requestors: sloughin [...] wamsystems.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.10
Fixed in: (no value)



Subject: AnyData adTie CSV problem
Download (untitled) / with headers
text/plain 840b
AnyData-0.10 used on a Windows platform with an Excel generated CSV file. File contains column headers and three rows of data, first column intended to be the default key. Here is the left edge of the CSV file: name,source,heat_capacity,hc_units Graphite,Poco AXF-5Q,691,J/(kg*K) nSiGi,GE,647,J/(kg*K) pSiGe,GE,647,J/(kg*K) with the following syntax: $tbl = adTie ( 'CSV', 'mydata.csv', 'r', {key=>'name'} ); print "COLUMNS: ". join '|',adNames($tbl)."\n"; print join '|',adColumn ( $tbl, 'name' )."\n" produces the following strange output: COLUMNS: 29 3 HASH(0x1c7f75c)|HASH(0x1c7f864)|HASH(0x1c82e08) Further examination suggests that the hash keys in the tied has are these HASHrefs shown above, and I cannot access any data except the first row using the syntax suggested in the documentation. sloughin@wamsystems.com


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.