Excellent!
Thanks Dave, this is an excellent exposition of the key characters in this little program, I think I follow roughly 90% of the optimization ideas that you've presented. I'm going to study your improved program (in addition to Perlbotics work) to better my programming, such as it is. My forte is in fine art, and sculpture; I've only recently evolved into coding as it is a wonderful artform in itself when allied with the interactive possibilities it can offer in sculptural works. I am currently working on a piece where I hand draw the trace lines of a microprocessor to resemble a face, where the ATMEGA 328 chip is in the 'nose'. Then I etch the transparent PCB to form the circuit, carve the rear and illuminate it via C to control LEDs integral in the work. But I digress. Thank you so much for taking the time to work on this. Your insights will extend into my thinking when coding going forward.
Rich.
I dove into the C, found a Shell and inside was a PERL.