Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 scrutinizing the Monastery: (3)
As of 2023-03-24 13:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (61 votes). Check out past polls.

    Notices?