in reply to lower case

The fact that you said "match" sounds like you're talking about a regular expression... is that the case? If so, you can just say
if ($var =~ /bob/i) { # Bob matches bob }
Or, as the previous poster said, if you're just trying to compare two strings case-insensitively, use
if (lc $var eq "bob") { # Bob matches bob }