http://www.perlmonks.org?node_id=863269


in reply to Re^2: Pattern matching with hash keys
in thread Pattern matching with hash keys

You can do that with regex with 'i' option modifier which stands for ignore case. Refer perlre. For example,

$str =~ /rabbit/i
But TIMTOWTDI, you can do that with functions also.

Prasad