Hi Monks :)
I'm working with a CSV file with large dimensions (1100~rows, 60~ columns). I want to split the list of 1100~ using the information present in one of the columns. To do this, I've copied the contents into a multi-dimensional array. However, when I try to access $Arr, there is no output. $Arr , it shows me the first row of the array.
I want to approach the array-column wise, and I'm not sure what changes to make.
This is the code I am using to read the csv file in question :
my @list = <*.csv>;
foreach $elem (@list)
open (FILE, $elem) or die "Cannot find $elem!\n";
my @array = <FILE>;
Here are a couple of rows from the file:
organism O2_REQUIREMENT Domain Classification
a.acidocaldarius Aerobe BACTERIA FIRMICUTES
a.actinomycetemcomitans Facultative BACTERIA PROTEO
To clarify :
$array should give "organism" but I get no output.
$array gives "organism O2_REQUIREMENT Domain Classification"