Hello monks
I am taking columns from a csv file , now I don't have the exact number of columns so I wish to use Double dimension array
so here is what I am doing
sub column_segregation
{
my ($file,$col) = @_;
use Text::CSV;
my @array_A2 = ();
open my $io,'<',$file or die "$!";
my $csv = Text::CSV->new ({ binary => 1 });
while (my $row = $csv->getline($io)) {
push @array_A2, $row->[$col];
}
close $io;
return (@array_A2);
}
so this routine will return an array , now i want each column should go to each corresponding column in Double dimension array. i.e. column 1 should go to column of 1 DD array and so on .
So I have never worked with DD array so how to put it in the DD array column is what I need help with <\n>