Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Case insensitive hash key existance

by merrymonk (Hermit)
on Nov 22, 2017 at 16:31 UTC ( [id://1204036]=note: print w/replies, xml ) Need Help??


in reply to Re: Case insensitive hash key existance
in thread Case insensitive hash key existance

Thanks for all the replies. I take the point about well formed data for keys and normally I would not want to do such a thing.
However, there are reasons why it is OK in this case.
The grep suggestion does just what I want.
  • Comment on Re^2: Case insensitive hash key existance

Replies are listed 'Best First'.
Re^3: Case insensitive hash key existance
by ikegami (Patriarch) on Nov 22, 2017 at 17:09 UTC

    Be warned of the massive performance hit. It replaces an O(1) lookup with than O(N) lookup. That's not good, but it's not so bad ...except that this is likely used in another another loop. Then that O(N) or O(N^2) loop because O(N^2) or O(N^3), and things start to crawl.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1204036]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-24 07:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found