Also, your syntax in the if statement isn't quite right. You are assigning a value to $match rather than comparing match to the hash value. To compare the values use:
See perlop for details.
Best, beth
Update: added clarifications on "use ... keys"
In reply to Re: Matching case insensitively in Hashes
by ELISHEVA
in thread Matching case insensitively in Hashes
by shekarkcb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |