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
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.
* 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
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
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
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.