in reply to Fly Subroutines on the Fly

There could still be an interesting point here of taking a perl program and outputing an optimized version or list of suggestions for optimizations.

(This is of course a tough goal as people in compiler design can attest)

In the simple case above perl optimizes it in compile time, doesn't it?