in reply to Re^4: Why does global match run faster than none global?
in thread Why does global match run faster than none global?

Fair enough, but in the case of searching for m/(23)/, /g will continue to the end of the string, while none /g should stop after its match. In this case it still seems like /g should be slower, though surely I could confused or missing something.
  • Comment on Re^5: Why does global match run faster than none global?

Replies are listed 'Best First'.
Re^6: Why does global match run faster than none global?
by ikegami (Patriarch) on Aug 23, 2011 at 22:37 UTC
    Finding that "456789" doesn't contain "23" can be done in nanoseconds.