Skip to content

Mention that the regex used by the empty m// is scoped #21607

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

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

choroba
Copy link
Contributor

@choroba choroba commented Oct 31, 2023

No description provided.

@demerphq
Copy link
Collaborator

demerphq commented Nov 1, 2023

FWIW perlvar already contains the following text:

Notice that each successful match in the exact same scope overrides the
match context of the previous successful match, but that unsuccessful
matches do not. Also note that in an inner nested scope the previous
state from an outer dynamic scope persists until it has been overriden
by another successful match, but that when the inner nested scope exits
whatever match context was in effect before the inner successful match
is restored when the scope concludes.

It is a known issue that goto LABEL may interact poorly with the
dynamically scoped match context. This may not be fixable, and is
considered to be one of many good reasons to avoid goto LABEL.

@demerphq demerphq merged commit 6abb319 into Perl:blead Nov 1, 2023
@choroba choroba deleted the empty-regex branch January 10, 2024 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants