in reply to Re: Matching case insensitively in Hashes
in thread Matching case insensitively in Hashes
Also, your syntax in the if statement isn't quite right. ...
I believe the idea was simply to test if there exists an entry for $input in the hash and the associated value evaluates to 'true', i.e.
if ($hash{$input}) { ... }
The additional assignment to $match is presumably just for easier subsequent access to the value (such as in the print statement)... (Only the OP will be able to tell, however, what the real intention was :)
|
|---|