Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Ignore Case when comparing Hash Keys

by moritz (Cardinal)
on Nov 15, 2010 at 18:40 UTC ( #871536=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %lc1 = %hash1.keys>>.lc Z %hash1.values;
    for %hash2.keys -> $k {
        say "$k ", %lc1.exists($k) ?? 'Matched' !! 'Did not match';
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2022-12-05 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?