in reply to Re^8: [bugs?] perldoc perlre, \G and pos()
in thread [bugs?] perldoc perlre, \G and pos()

you still haven't looked at the code I posted. With pos==0 it doesn't match

I chose to explain why it matches endlessly. Will you stop telling me it doesn't match. I'm not interested in that case.

which is evidently a bug!

The bug is in your code. So what if Perl behaves oddly when provided with irrational inputs. Fix the bug in your code and it's a non-issue.

  • Comment on Re^9: [bugs?] perldoc perlre, \G and pos()