New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Perl 5.10.0 smart match with m//g fails to update pos #9783
Comments
From joejr@vornehm.comCreated by joejr@vornehm.comThe Perl 5.10 smart match operator, when used with a regular expression, does not update the match position returned by the pos() function. A simple example: use feature ":5.10"; The output is yes but should be yes Changing ~~ to =~ produces the correct output. This also affects smart matches in while/given statements. That's perhaps the most important use case, where one is trying to parse structured input using m//g and m//gc: while (pos($input) < length($input)) { I have confirmed this behavior on Perl 5.10.0 patch 34065 for Cygwin 1.5.25, ActiveState Perl 5.10.0 build 1005, and Strawberry Perl 5.10.0.5 (the most recent available stable versions), all running on WinXP SP3. Perl Info
|
From @iabynOn Wed, Jul 01, 2009 at 12:15:53PM -0700, Joe Vornehm wrote:
Also confirmed in maint and blead: -- |
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#67140 (status was 'open')
Searchable as RT67140$
The text was updated successfully, but these errors were encountered: