in reply to Module for sets of strings, ordered, case-insensitive?
It's not clear to me how you wish the ordering to work. The case insensitive matching can be done by populating a hash with the lower cased version of the match string then matching against the lower case version of the test string. Wrapping that process up as a class would be fairly trivial and may well be the basis for resolving the ordering problem.
My guess is that there are no modules that do just what you want unless this is a common problem. I can't tell if this is a common problem because the ordering requirements aren't obvious to me. The case insensitive matching is sufficiently trivial that it is unlikely to have been wrapped up in a module. Perhaps you could tell us more about the context of your problem?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Module for sets of strings, ordered, case-insensitive?
by cxw (Scribe) on Dec 27, 2020 at 00:32 UTC | |
by GrandFather (Saint) on Dec 27, 2020 at 00:53 UTC | |
by cxw (Scribe) on Jan 10, 2021 at 21:16 UTC | |
by GrandFather (Saint) on Jan 11, 2021 at 00:18 UTC |