Skip to content

Replace deprecated smartmatch with List::Util::any - #288

Open
zacchiro wants to merge 1 commit into
masterfrom
smartmatch-deprecation
Open

zacchiro wants to merge 1 commit into
masterfrom
smartmatch-deprecation

Conversation

@zacchiro

Copy link
Copy Markdown
Collaborator

The smartmatch operator (~~) is deprecated and emits warnings on modern Perl. All uses were scalar-in-list membership tests, now expressed with List::Util::any (or numeric == for the enum case).

Fixes #277

The smartmatch operator (~~) is deprecated and emits warnings on
modern Perl.  All uses were scalar-in-list membership tests, now
expressed with List::Util::any (or numeric == for the enum case).

Fixes #277

Assisted-by: Claude:claude-opus-4-8
Copilot AI review requested due to automatic review settings June 14, 2026 07:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

Smartmatch is deprecated

2 participants