Re: Compressing multiple columns into one

2008-06-19 Thread Emen Zhao
Hello, How about this? my @test = qw(10 20 30 40 50); splice @test, 1, 3, $test[1]+$test[2]+$test[3]; print "@test"; Thanks, --Emen On Thu, Jun 19, 2008 at 4:05 PM, Jean-Rene David <[EMAIL PROTECTED]> wrote: > Hi, > > A little problem I encountered recently. > > I have an array of integers and

Compressing multiple columns into one

2008-06-19 Thread Jean-Rene David
Hi, A little problem I encountered recently. I have an array of integers and two indexes within that array. I need to get another array identical to the first one, except that all cells between the two indexes (inclusive) must be compressed to one column which is the sum of the originals cells.

Re: Compressing multiple columns into one

2008-06-19 Thread Jean-Rene David
* Paul Lalli [2008.06.19 13:52]: > On Jun 19, 11:41 am, [EMAIL PROTECTED] (Jean-Rene David) wrote: > > I have an array of integers and two indexes within > > that array. I need to get another array identical > > to the first one, except that all cells between > > the two indexes (inclusive) must be

Re: Compressing multiple columns into one

2008-06-19 Thread John W. Krahn
Jean-Rene David wrote: Hi, Hello, A little problem I encountered recently. I have an array of integers and two indexes within that array. I need to get another array identical to the first one, except that all cells between the two indexes (inclusive) must be compressed to one column which i

Re: Compressing multiple columns into one

2008-06-19 Thread Paul Lalli
On Jun 19, 11:41 am, [EMAIL PROTECTED] (Jean-Rene David) wrote: > A little problem I encountered recently. > > I have an array of integers and two indexes within > that array. I need to get another array identical > to the first one, except that all cells between > the two indexes (inclusive) must

Compressing multiple columns into one

2008-06-19 Thread Jean-Rene David
Hi, A little problem I encountered recently. I have an array of integers and two indexes within that array. I need to get another array identical to the first one, except that all cells between the two indexes (inclusive) must be compressed to one column which is the sum of the originals cells.