Perl / Perl/perl5

Case insensitive string comparison operators: eqi, nei, lti, gti, lei, gei

Open
#17,523 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

It would be useful to have infix operators for case-insensitive string comparison.
$foo eqi $bar
would be equivalent to
fc($foo) eq fc($bar)
and so on.

Yes, it's just syntactic sugar really, but Perl hardly takes an austere approach to these things. In my view a case-insensitive string comparison falls under "easy things should be easy".

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 reviewing Perl's existing infix comparison operators and the issue's proposed eqi, nei, lti, gti, lei, and gei semantics, including the fc-based equivalence. Locate the parser, operator implementation, and relevant tests, then define coverage for parsing and case-insensitive comparisons; done means the operators work consistently and are tested.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.