Subject: | |
Date: | Fri, 24 Sep 2010 12:16:39 -0700 |
To: | "bug-tie-handle-csv [...] rt.cpan.org" <bug-tie-handle-csv [...] rt.cpan.org> |
From: | Brian Chong <bchong [...] adobe.com> |
The following error occurs:
Use of uninitialized value in lc at C:/strawberry/perl/site/lib/Tie/Handle/CSV/Hash.pm line 31, <$csv_fh>
When running a simple script:
#!/usr/bin/perl
use strict;
use warnings;
use Tie::Handle::CSV;
my $fh = Tie::Handle::CSV->new('ref.txt', header => 1);
while (my $csv_line = <$fh>) {
print $csv_line->{'ACTION NEEDED'} . ": " . $csv_line->{'part_number'} . "\n";
}
close $fh;