Skip to content

Perl: pin foreach loop variable not read as a call (Part of #6434) - #6461

Merged
squid-protocol merged 1 commit into
mainfrom
churn/6434-20261024T0949Z
Oct 24, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/6434-20261024T0949Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6434.

#6433's CALLS_OUT_PERL (merged) already excludes a sigil-prefixed name before (, so the root cause is fixed on main. This PR adds the regression test covering the whole loop-variable class; no engine change, so no golden re-bless.

Class / Sibling gaps

Class: Perl sigil-prefixed variable followed by ( read as a call. Covered and tested: foreach/for my|our|local|state $x (, plain foreach $x ( / for $x (, with spacing variants and a sort keys %h list, each asserting real calls (f(, Pkg::f(, $o->m() survive.
Sibling gap: a package-qualified loop variable foreach $Pkg::x (@l) still yields callee x (:: is allowed before a name so Pkg::f( works; a fixed-width lookbehind cannot see the sigil across the package path). Rare; needs a different mechanism.

Gates: pr_gates --fast 7/7. --ratchets not run (no engine or fixture change).

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 24, 2026 13:21
@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 13:21
@squid-protocol
squid-protocol merged commit c79386a into main Oct 24, 2026
48 checks passed
@squid-protocol
squid-protocol deleted the churn/6434-20261024T0949Z branch October 24, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant