$p = Formula("your formula here"); ... ANS($p->cmp(checker => sub { my ($correct,$student) = @_; return $correct == $student || $correct == -$student; });should do the trick.
Davide
$p = Formula("your formula here"); ... ANS($p->cmp(checker => sub { my ($correct,$student) = @_; return $correct == $student || $correct == -$student; });should do the trick.
Davide