in reply to making my suroutine and parts of my program case insensitive.
Change your first regex to /$_/ig. Note the i-modifier (which tells it to match case insensitively). Another option is to uc() or lc() all input data and then compare.
Electric eels were invented at the same time as electricity
Before electricity was invented, electric eels had to stun with gas
Results (369 votes). Check out past polls.