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

You did ensure that $str was defined as our not my didn't you?