Installation

PGfunctionevaluators.pl

PGfunctionevaluators.pl

by Andras Balogh -
Number of replies: 0

I just updated to fedora 9 (in the middle of the semester, like a noob)
to realize that perl 5.10.x creates warning messages like

>> Useless use of a constant in void context at /opt/webwork/pg/lib/WeBWorK/EquationCache.pm line 42

An update to pg-2.4.5 eliminated the above problem but introduced the following new warning for function checking:

The simple problem

BEGIN_TEXT

Enter function "x" \{ans_rule(10)\}
END_TEXT
$fun="x";
ANS(fun_cmp($fun));

Creates the following warning after entering anything as answer:

Use of uninitialized value in pattern match (m//) at line 1039 of [PG]/macros/PGfunctionevaluators.pl

Otherwise everything else seems to work correctly.

The above mentioned line contains
and $rh_ans->{ans_equals_prev_ans} # equivalent


Andras