better has asked for the wisdom of the Perl Monks concerning the following question:
I tried to build a hash out of a an EXCEL CSV file using JKeenan's Text::CSV::Hashify, but I can't get it work.
use strict; use warnings; use Text::CSV::Hashify; my $obj = Text::CSV::Hashify->new( { file => './data/BuildHash.csv', format => 'hoh', key => 'A', }); print my $hash_ref = $obj -> fields;
The message returned is: Key ' ' already seen at ...
I tried to declare coloumn A as key. The first coloumn of the CSV file consists of fields with unique IDs. How can I declare this coloumn as key?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with JKeenan's Hashify
by NetWallah (Canon) on Apr 07, 2013 at 21:28 UTC | |
|
Re: Problem with JKeenan's Hashify
by choroba (Cardinal) on Apr 07, 2013 at 21:18 UTC |