http://www.perlmonks.org?node_id=1037152


in reply to Re^2: Merging of arrays with space
in thread Merging of arrays with space

I don't understand why you are doing split twice (first for the row and then for the column). If you just want to return a given column from a CSV you could do it simply with:
my @result = map { my @row = split /,/ => $_; $row[$column_number] } @lines;
assuming there isn't any escaped csv-values such as
a,b,"hello, world",c,d