
Crawling_key
Novice
Jun 18, 2009, 12:55 PM
Post #1 of 16
(908 views)
|
|
Read a CSV into hash
|
Can't Post
|
|
Hi, I have a problem which is probably easy to solved - but not for me - I'm new at Perl. I have a csv with the first column a label followed by comma separated values:
LabelA,2,3,56,78,90 LabelB,65,45,23,34,87 LabelC,67,34,56,67,98 I'd like the first column to be the Key in a hash with the numeric values in an array. I can read the file into an array or scalar but I'm not sure what to do after that. Suggestions??
|