in reply to Tracking minimum of values in an array over time
Create a counter, at increment time check to see if the incremented value == the minimum value, when counter == @a start processing. This should work if you are updating through a single sub and if the minimum is constant. (if you need to be able to regenerate for some reason iterate once to set the count)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Tracking minimum of values in an array over time
by liverpole (Monsignor) on Oct 05, 2011 at 19:36 UTC | |
by tj_thompson (Monk) on Oct 05, 2011 at 20:09 UTC | |
by Limbic~Region (Chancellor) on Oct 06, 2011 at 18:27 UTC | |
by suaveant (Parson) on Oct 06, 2011 at 20:15 UTC |
In Section
Seekers of Perl Wisdom