Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Ignore Case when comparing Hash Keys

by moritz (Cardinal)
on Nov 15, 2010 at 20:03 UTC ( [id://871566]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Ignore Case when comparing Hash Keys
in thread Ignore Case when comparing Hash Keys

I cant convert the Hash Keys to lower case, because I want to display the Keys and Values Side by side in the output and I want to keep the original Case of the Keys.

Then use another hash that maps lower case key to the correctly cased key.

Also note that the original hash with the correctly cased keys still exists, and stands at your disposal.

  • Comment on Re^3: Ignore Case when comparing Hash Keys

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-19 05:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found