I think I'm catching on. I tried the expression =~ /
/ with better results. However, I now get a correct answer if I check a or ab or ac. I also get incorrect answers if I check bd or cd. What I'm ultimately going to do is have a variable which will contain the answer. For example, $answer might contain a,d (as seen in the text file). I was hoping to be able to compare param('sX') with $answer to make sure the person selected the correct answers. Therefore, I want to make sure I get a true response only if param('sX') contains all the characters in $answer, not just one. Is there a better way of accomplishing this without having to use m//? I tried using if(param('s1') eq "ad" but that didn't work either as I suspect I'm not understanding how param() returns the value. Thanks