Skip Menu |

This queue is for tickets about the Net-Google-Spreadsheets CPAN distribution.

Report information
The Basics
Id: 93637
Status: new
Priority: 0/
Queue: Net-Google-Spreadsheets

Owner: Nobody in particular
Requestors: aveckey [...]

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

Subject: Please remove the caveat for rows() to lowercase the keys and remove non-alphanumerics and periods
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-29721-1394232794-1479.0-0-0 [...]>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 629
Download (untitled) / with headers
text/plain 629b
The rows() and row() functions return Net::Google::Spreadsheets::Row objects in which the content() function returns a hash reference. It would be nice if said hash reference would have the keys that accurately correspond to the headers of the worksheet. The documentation states that the records() function from table() handles this, why not row()? Also, it would be great to have a headers() function to return a list of the headers. If you want to keep the functionality as is, you could go roundabout and provide a converter that will convert the actual header name to the key name in the hash reference (and vice-versa).

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

Please report any issues with to