Skip Menu |

This queue is for tickets about the Tie-Handle-CSV CPAN distribution.

Report information
The Basics
Id: 27049
Status: resolved
Worked: 1 hour (60 min)
Priority: 0/
Queue: Tie-Handle-CSV

People
Owner: danboo [...] cpan.org
Requestors: RSAVAGE [...] cpan.org
Cc:
AdminCc:

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



Subject: Suggestion: Lower case headings option
I'd like to see a constructor option which forces column headings to lower case. That solves both (a) mixed/unknown case in the heading itself, and (b) allows code to use the same case in data returned by this module as is returned by other modules elsewhere in my code.
On Wed May 09 23:46:05 2007, RSAVAGE wrote: Show quoted text
> I'd like to see a constructor option which forces column headings to > lower case. That solves both (a) mixed/unknown case in the heading > itself, and (b) allows code to use the same case in data returned by > this module as is returned by other modules elsewhere in my code.
I've just added and released the 'force_lower' option in Tie-Handle-CSV version 0.07.
Subject: Re: [rt.cpan.org #27049] Suggestion: Lower case headings option
Date: Fri, 11 May 2007 18:36:50 +1000
To: bug-Tie-Handle-CSV [...] rt.cpan.org
From: Ron Savage <ron [...] savage.net.au>
via RT wrote: Show quoted text
> I've just added and released the 'force_lower' option in Tie-Handle-CSV > version 0.07.
$many x $thanx; After I submitted that suggestion, I realized lower case suits me but not necessarily others. Now, I would suggest 'heading_case', with these values o lower o upper o as-is (default) Sorry I didn't think of this first :(. -- Ron Savage ron@savage.net.au http://savage.net.au/index.html
On Fri May 11 04:38:03 2007, ron@savage.net.au wrote: Show quoted text
> via RT wrote: >
> > I've just added and released the 'force_lower' option in Tie-Handle-CSV > > version 0.07.
> > $many x $thanx; > > After I submitted that suggestion, I realized lower case suits me but > not necessarily others. Now, I would suggest 'heading_case', with these > values > o lower > o upper > o as-is (default) > Sorry I didn't think of this first :(. >
That seems reasonable. I may also add an 'any' value for case-insensitive keys. It would force the use of tied hashes even if you had 'stringify => 0'. That would take a bit more time and testing, but supporting 'lower', 'upper' and 'as_is' is pretty easy.
From: DANBOO [...] cpan.org
Just released version 0.08 which now includes the 'key_case' option allowing the user to specify 'lower' or 'upper', defaulting to 'as_is'. Still planning to add support for case insensitive keys/headers via the 'any' value.
Released v0.09 which adds support for case-insensitive hash keys via the key_case => 'any' option.