in reply to How can i compare strings using non-case-sensitive comparisions?
Force the case. if (lc($y) eq lc($x)) { stuff }