in reply to Array of arrays - redux

I had considered setting up a loop with a counter to go through the original data, and using that counter to look back over the last 15 rows

That seems the simplest way to me but with 2 counters say $ix,$n. [$ix] for current position and $n counting from 1 to 15 pointing to previous row [$ix-$n] in turn. You will need to adjust the logic for the first 15 records of course.

poj

Replies are listed 'Best First'.
Re^2: Array of arrays - redux
by JockoHelios (Scribe) on Jun 17, 2013 at 18:00 UTC
    I'm reluctantly coming to the conclusion that I'll have to abandon the look-back array concept. Apparently, two-dimensional arrays in Perl are too difficult to actually use for someone at my level :(

    I'll need at least three counters, though. The original array has data for up to a full year, and I have to start the comparison search over with each new day. So I'd need an overall original array counter, and the other two counters would reset when the day turns over.

    Dyslexics Untie !!!