Skip to content

Call graph (perl): bare no-argument built-ins time, wait, wantarray, fork, eof, pos (Part of #6433) - #7004

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6433-perl-noarg-builtins
Oct 29, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6433-perl-noarg-builtins

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6433. Slice 6: no-argument and optional-argument Perl built-ins written without parentheses.

Changes

  • _PERL_BUILTIN gains time times wait wantarray fork getppid getlogin eof pos study fileno readline chroot rewinddir telldir.
  • A (?<!sub )(?<!sub\t) guard keeps sub wait { from reading as a call. Hash keys ({time}, time =>) were already excluded.
  • Tests: slice-6 positives, negatives (hash keys, sub definitions, scalars named like built-ins) and two ReDoS payloads.
  • Golden masters re-blessed through golden-lock.sh crucible_check.py --update --yes. Drift is perl calls_out_to only (bugzilla CGI.pm gains wantarray) and the hashes derived from it.

Class / Sibling gaps

Class: Perl calls written without parentheses where the callee is a bare no-argument or optional-argument built-in missing from _PERL_BUILTIN. All members listed above are handled in this PR with tests. I picked the shape from reading the pattern and its test, not from a measured corpus gap. Sibling gaps: (1) user-defined paren-less calls with no argument (foo;): needs a symbol table, not feasible regex-only; (2) ambiguous_function_call_expression shapes (188) and engine-attributes (731) from #6433; (3) a call-graph resolution re-measure for perl; (4) sub wait with two or more blanks is not guarded (fixed-width lookbehind).

Gates

pr_gates --fast 9/9 pass, --ratchets 9/9 pass, perl test files pass.

🤖 Generated with Claude Code

…fork, eof, pos (Part of #6433)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 29, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 29, 2026 12:27
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 29, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 29, 2026 12:29
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

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