Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Ignore Case when comparing Hash Keys

by moritz (Cardinal)
on Nov 15, 2010 at 20:03 UTC ( #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? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2022-12-09 23:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?