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 bug: Incorrect handling of $1 in first pass in (?{ code }) #3043
Comments
From ttel5535@ss1000.ms.mff.cuni.czThe $1 variable is not correctly set in the first (and matching) pass in the #!/usr/bin/perl # Try uncomment this for ("a:", "b: ", "c:") { if ( m{ ####### end of example ####### Actual output: ~/pokus/perl> bug Inside: What I would expect: Inside: I would also expect that there will be the "Inside" section for string "b: " Inside: But this is probably not a bug. Thank you Perl Info
|
From @mjdominus
This has been fixed in 5.6.0. Thanks for your bug report. |
From [Unknown Contact. See original ticket]
Well spotted. This bug has been fixed in recent perls -- the output my
And you're right that this is not a bug. It's the REx optimizer stopping Is this something that needs more specific documenting? I patched retut -dlc |
Migrated from rt.perl.org#5030 (status was 'resolved')
Searchable as RT5030$
The text was updated successfully, but these errors were encountered: