From: Michael G. <ga...@ma...> - 2005-09-14 00:34:08
|
Thanks, Davide. Sorry to have caused the trouble. When I get a chance I'll grep through the code and see if there are any other uses of str_cmp which are affected by this change. Take care, Mike On Sep 13, 2005, at 10:10 AM, Davide P.Cervone wrote: >> I'm hoping you can help me out. I'm getting a bug on the >> following problem below whenever 'DNE' is entered as an answer. >> > > It turns out this is a result of your having updated the str_cmp > answer checker to return an AnswerEvaluator object rather than a > CODE reference. The check_string filter uses str_cmp the check the > answer, but uses it as a CODE reference, so I changed that to > $ans_eval->evaluate($ans) and that took care of it. I haven't > looked to see that there aren't other places where this might occur. > > Davide > > "Only dead fish swim with the stream." |