note
swl
<p>Just a guess, but the delta for 5.20 includes this entry:</p>
<p><i>Executing a regex that contains the ^ anchor (or its variant under the /m flag) has been made much faster in several situations.</i></p>
<p>[https://metacpan.org/pod/release/RJBS/perl-5.20.0/pod/perldelta.pod#Performance-Enhancements]</p>
<p>Maybe that enhancement has some side effects triggered by the <c>\s* ^ \s*</c> patterns in the regexps.</p>
<p>Are you able to test what happens in pre-5.20 if these patterns are changed to <c>\s*</c>?
<p>Edit - I should have asked for what happens either side of 5.20.</p>
11128141
11128181