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

Re^4: Can we make hash key check in 'if' condition case insensitive?

by poj (Monsignor)
on Feb 09, 2018 at 17:23 UTC ( #1208844=note: print w/replies, xml ) Need Help??


in reply to Re^3: Can we make hash key check in 'if' condition case insensitive?
in thread [SOLVED: Can we make hash key check in 'if' condition case insensitive?

You need fc here too

my %hash = map { fc $_, 1 } @castaways;
poj
  • Comment on Re^4: Can we make hash key check in 'if' condition case insensitive?
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1208844]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2018-06-21 14:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (118 votes). Check out past polls.

    Notices?