How do I open a csv text file as a hash. I know this much:
open ( TABLE, table1 ) or die ("cannot open file : $!" );
Now I want it written into a hash in this manner:
Contents of the csv file:
"some HEX number", "text associated with some HEX number", "next HEX number", "text associated with next HEX number", etc, etc,
I want the HEX number column in the HASH to be the key so I can search for it and pull the associated text.
Any ideas?
open ( TABLE, table1 ) or die ("cannot open file : $!" );
Now I want it written into a hash in this manner:
Contents of the csv file:
"some HEX number", "text associated with some HEX number", "next HEX number", "text associated with next HEX number", etc, etc,
I want the HEX number column in the HASH to be the key so I can search for it and pull the associated text.
Any ideas?