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 {

Re: complex subroutine arguments

2010-02-04 Thread Eric Mooshagian
On Thu, Feb 4, 2010 at 2:24 AM, John W. Krahn wrote: > Eric Mooshagian wrote: > >> Dear All, >> > > Hello, > Hi John, Thanks for the notes. > > I have a few subroutines that I use to first build an index for several >> arrays and then, for example, take

Fwd: complex subroutine arguments - correction

2010-02-03 Thread Eric Mooshagian
Correction, I meant ||, not && ... exclude => (responsetime <= 200) || (responsetime >= 1200) where responsetime refers to an array. Thanks, Eric Begin forwarded message: From: Eric Mooshagian Date: February 3, 2010 10:45:37 PM EST To: beginners@perl.org Subject: c

complex subroutine arguments

2010-02-03 Thread Eric Mooshagian
Dear All, I have a few subroutines that I use to first build an index for several arrays and then, for example, take the mean for the index values. When I build the index I can exclude particular values in an array as follows: my $index = defindex( exclude => ["0",\...@accuracy],

Re: conditional index of arrays

2009-12-04 Thread Eric Mooshagian
On Dec 4, 2009, at 8:32 AM, Shlomi Fish wrote: On Friday 04 Dec 2009 06:10:16 Eric Mooshagian wrote: Dear All, This is my first post. I present some subroutines that 1) create an index for one or more arrays and then 2) get summary statistics based on the index. I have 2 issues

conditional index of arrays

2009-12-03 Thread Eric Mooshagian
Dear All, This is my first post. I present some subroutines that 1) create an index for one or more arrays and then 2) get summary statistics based on the index. I have 2 issues: 1. I would like to be able to create the index conditional on the values of another array, e.g., conceptuall