I'm playing with some code which does a lot of pushing (and some popping). Putting this code inside "timethese", I see that the array (@_, in this case) is NOT cleared out for each iteration of the code. Thus, it grows larger and larger for each iteration. While I can certainly undef @_ at the beginning of the code so that it's empty, this seems like it should be unnecessary (it also adds significantly to the elapsed time of my otherwise fairly speedy code).
Shouldn't "timethese" reset all the data structures upon each iteration of the code, so that the last iteration is guaranteed to have the same initial state as the first iteration? If not, why not? Is this behavior what you *expected* when you first discovered it (if indeed you have?)
I'm using 5.005 on HP-UX 10.20.