in reply to Re: Why this code run faster?
in thread Why this code run faster?
You are incorrect. /o is only operative when there is interpolation in the pattern. Since there is none - the pattern is compiled only once and at that is at the normal perl compile-time. That is, right along at the same time as the surrounding code. Compilation of interpolated patterns is deferred to runtime. If /o were present then the first interpolated pattern would be baked in.
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
|
|---|