I have a problem to write and read properly a CSV file composed of name(key) and array of values:
testarray.csv
foo1 ,0,0,0,0,1
foo2 ,1,0,0,0,1
foo3 ,3,4,5,6,7
.
.
.
I need to represent that file as follows:
foo#
will be the key and the five following numbers will be its array.
What is the simple way to conduct that and to recall it for a use (not with Dumper)? How can I use a varible from an array of a specific key?
E.g.,
print $hsh{'foo1'}[4];