Re: [MacPerl] Summing an array...

2001-11-09 Thread Richard Smith
Chris et all, Thanks for the solutions, and for the heads up on the novice mistake addressing array elements. Time to start checking back through my scripts for that one. Many thanks, Richard --- Chris Nandor <[EMAIL PROTECTED]> wrote: > At 16:10 + 2001.11.09, Richard Smith wrote: > >This

Re: [MacPerl] Summing an array...

2001-11-09 Thread Martin Danielsson
On Fri, Nov 09, 2001 at 04:10:31PM +, Richard Smith wrote: > This seems such an obvious operation, but the syntax > escapes me. I have an array of up to 6 values, which I > want to add together. I am sure there must be a > shorthand version of this: > > $result = @array[0] + @array[1] + @arra

Re: [MacPerl] Summing an array...

2001-11-09 Thread Ronald J Kimball
On Fri, Nov 09, 2001 at 04:10:31PM +, Richard Smith wrote: > This seems such an obvious operation, but the syntax > escapes me. I have an array of up to 6 values, which I > want to add together. I am sure there must be a > shorthand version of this: > > $result = @array[0] + @array[1] + @arra

Re: [MacPerl] Summing an array...

2001-11-09 Thread Chris Nandor
At 16:10 + 2001.11.09, Richard Smith wrote: >This seems such an obvious operation, but the syntax >escapes me. I have an array of up to 6 values, which I >want to add together. I am sure there must be a >shorthand version of this: > >$result = @array[0] + @array[1] + @array[2] + >@array[3] + .