Fix CPAN random module compatibility issues#864
Merged
Conversation
Fix several runtime and parser parity issues surfaced by cpan_random_tester:
- accept perl shebangs with switches for -x extraction
- propagate BEGIN feature imports back to the caller scope
- preserve parsed CODE refs for defined(&name)
- handle zero-length global substitutions with same-position retry
- support scalar refs to globs as IO method invocants
- expose caller()[5] wantarray context and blessed CODE isa("CODE")
- add AnyEvent distroprefs for unsupported upstream event-loop/fork tests
Generated with [Codex](https://openai.com/codex)
Co-Authored-By: Codex <codex@openai.com>
Fix regressions from the CPAN compatibility changes: - keep s///g matcher regions from creating artificial ^/$ anchors - allow lookaround assertions to inspect across substitution region bounds - keep synthetic zero-length retry matching opaque so nullable s///g still consumes correctly - apply shebang switches discovered by -x extraction and reject -x over -e fragments Generated with [Codex](https://openai.com/codex) Co-Authored-By: Codex <codex@openai.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification
make./jcpan -t ExtUtils::Helpers./jcpan -t Search::Dict./jcpan -t File::Globstar./jcpan -t Any::Moose./jcpan -t Path::Dispatcher::Declarative./jcpan -t Carp::Assert::More./jcpan -t AnyEvent./jcpan -t Test::Class