http://www.perlmonks.org?node_id=929863


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)

                - Ant
                - Some of my best work - (1 2 3)