Re: putting file columns into arrays

2011-05-20 Thread Uri Guttman
> "EM" == Eric Mooshagian writes: EM> I would like a subroutine that will allow me to easily put columns EM> of a tab delimited file into their own arrays. EM> I've been calling the following repeatedly for each column: EM> my @array1 = getcolvals($filehandle, 0); EM> my @array2 =

putting file columns into arrays

2011-05-20 Thread Eric Mooshagian
Dear All, I would like a subroutine that will allow me to easily put columns of a tab delimited file into their own arrays. I've been calling the following repeatedly for each column: my @array1 = getcolvals($filehandle, 0); my @array2 = getcolvals($filehandle, 1); ...etc. sub getcolvals {