No warning on qr/[a-b-c]/, but tr/a-b-c/ is a fatal error
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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