Perl / Perl/perl5

No warning on qr/[a-b-c]/, but tr/a-b-c/ is a fatal error

Open
#17,599 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Perl
Stars
2.3k
Forks
646
Avg merge
2d 22h
Merged PRs (30d)
49

Description

The error is 'Ambiguous range in transliteration operator'

And qr/[a-l-z]/ compiles to the range a-l, plus a dash, plus a z

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported qr/[a-b-c]/, qr/[a-l-z]/, and tr/a-b-c/ cases in Perl and compare their diagnostics and compiled behavior. The issue is complete when the handling of ambiguous ranges is consistent with the intended warning or fatal-error behavior, with regression coverage for these examples.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.