Skip Menu |

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

Report information
The Basics
Id: 73117
Status: resolved
Priority: 0/
Queue: Tie-Handle-CSV

People
Owner: danboo [...] cpan.org
Requestors: jvanderb [...] gmail.com
Cc:
AdminCc:

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



Subject: Bug in Hash.pm
When using Tie::Handle::CSV, if you do not specify the key_case option, you get an error message: Use of uninitialized value in lc at C:/Perl/site/lib/Tie/Handle/CSV/Hash.pm line 31, <$csv_fh> line xxxx I have attached a patch that seems to resolve the issue in my configuration.
Subject: Hash.pm.patch
--- Hash-backup.pm 2011-12-08 14:53:53.000000000 -0700 +++ Hash.pm 2011-12-08 14:53:53.000000000 -0700 @@ -28,6 +28,9 @@ }, $class; + if(!defined $opts->{'key_case'}) { + $opts->{'key_case'} = 'any'; + } $self->{'lc'} = lc $opts->{'key_case'} eq 'any'; return $self; }
I've fixed this lc() on undef warning in version 0.14. I couldn't use your patch directly since it changed the default behavior of 'key_case', but thanks for the bug report and sorry for the delay in addressing.