in reply to Re: Check if key exist in hash but not exact match
in thread Check if key exist in hash but not exact match
I tinkered with my previous code (Re: Check if key exist in hash but not exact match) and made a couple of improvements.
Name: Cola Match Key Value ----- --- ----- NO_CASE cola 1.25 PARTIAL Coca Cola 1.25 PARTIAL Pepsi Cola 1.25 PARTIAL Undead Cola <undefined>
As there are only a few code changes, and the sample run is the same as before except for the Name: Cola (shown above), I've put all of this in a spoiler (view at your leisure).
— Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Check if key exist in hash but not exact match
by kcott (Archbishop) on Apr 04, 2023 at 19:21 UTC | |
by ibm1620 (Hermit) on Apr 04, 2023 at 21:36 UTC | |
by LanX (Saint) on Apr 04, 2023 at 21:51 UTC | |
by eyepopslikeamosquito (Archbishop) on Apr 04, 2023 at 22:23 UTC | |
by kcott (Archbishop) on Apr 04, 2023 at 22:41 UTC | |
by ibm1620 (Hermit) on Apr 05, 2023 at 12:11 UTC |