Skip to content

Fix DateTime::Calendar::Hebrew clone test#783

Merged
fglock merged 3 commits into
masterfrom
fix/datetime-calendar-hebrew-dumper
May 21, 2026
Merged

Fix DateTime::Calendar::Hebrew clone test#783
fglock merged 3 commits into
masterfrom
fix/datetime-calendar-hebrew-dumper

Conversation

@fglock
Copy link
Copy Markdown
Owner

@fglock fglock commented May 21, 2026

Summary

  • Fix print Dumper $object parsing so unresolved barewords after print are treated as bareword filehandles instead of indirect object method calls.
  • Keep declared and defined subroutines taking precedence over bareword filehandle autovivification.
  • Add a regression test for unresolved, declared-only, and defined bareword cases after print.

Tests

  • make
  • ./jcpan -t DateTime::Calendar::Hebrew

fglock and others added 2 commits May 21, 2026 15:24
Preserve Perl print disambiguation for unresolved barewords such as `print Dumper $object` so they become bareword filehandles instead of indirect method calls. Keep declared and defined subroutines taking precedence over filehandle autovivification.

Generated with [Codex](https://openai.com/codex)

Co-Authored-By: Codex <codex@openai.com>
Avoid treating core operators, v-string prefixes, and immediate bareword
function calls after print as autovivified filehandles. This keeps the
DateTime::Calendar::Hebrew Dumper case working without regressing Perl core
tests that print qq(), v-strings, or B::svref_2object(...).

Generated with [Codex](https://openai.com/codex)

Co-Authored-By: Codex <codex@openai.com>
@fglock fglock force-pushed the fix/datetime-calendar-hebrew-dumper branch from d6fe8bf to 9d84b28 Compare May 21, 2026 13:32
Do not autovivify an unresolved print bareword as a filehandle when the
next real token is a method dereference. This keeps `print Fake->foo`
parsing and executing as a class method call while preserving the
DateTime::Calendar::Hebrew `print Dumper $clone` case.

Generated with [Codex](https://openai.com/codex)

Co-Authored-By: Codex <codex@openai.com>
@fglock fglock merged commit 5fcaa18 into master May 21, 2026
2 checks passed
@fglock fglock deleted the fix/datetime-calendar-hebrew-dumper branch May 21, 2026 14:21
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.

1 participant