in reply to data manipulation case insensitive match
If you want to count case-insensitively, count the number of a canonicalized version, like lc 'targetL' for example, or fc 'targetL'. You will need to check your hash for all keys who have lc $key eq lc 'targetL' then.
But as you don't show us what your data structure is, or how it comes to be, it is very hard to give you more concrete advice.
My best hint is to calculate the data before or while constructing your data structure, or, if this data structure is the result of a database query, to leverage the database functionality to calculate the number of targetL instances instead.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: data manipulation case insensitive match
by Anonymous Monk on Nov 16, 2019 at 14:38 UTC | |
by Corion (Patriarch) on Nov 16, 2019 at 16:16 UTC |