I can't figure out why this causes warnings.
DOCUMENT();
loadMacros(
"PGstandard.pl",
"MathObjects.pl",
"PGML.pl",
"niceTables.pl"
);
TEXT(beginproblem);
Context("Numeric");
$answerlist = [ 1, 2 ];
$payoffmatlatex = DataTable(
[ [ ans_rule(1), ans_rule(1) ]
],
align => 'cc' );
BEGIN_PGML
[@ $payoffmatlatex @]*
END_PGML
##############################
$showPartialCorrectAnswers = 0;
map { ANS( Compute($_)->cmp() ) } @$answerlist;
ENDDOCUMENT();
The warnings:
WeBWorK has encountered warnings while processing your request. If this occured when viewing a problem, it was likely caused by an error or ambiguity in that problem. Otherwise, it may indicate a problem with the WeBWorK system itself. If you are a student, report these warnings to your professor to have them corrected. If you are a professor, please consult the warning output below for more information.
Warning messages
Use of uninitialized value in numeric eq (==) at line 249 of [PG]/macros/niceTables.pl
Use of uninitialized value in numeric eq (==) at line 251 of [PG]/macros/niceTables.pl
Use of uninitialized value in numeric eq (==) at line 252 of [PG]/macros/niceTables.pl
Use of uninitialized value in numeric eq (==) at line 253 of [PG]/macros/niceTables.pl
Use of uninitialized value in numeric eq (==) at line 249 of [PG]/macros/niceTables.pl
Use of uninitialized value in numeric eq (==) at line 251 of [PG]/macros/niceTables.pl
Use of uninitialized value in numeric eq (==) at line 252 of [PG]/macros/niceTables.pl
Use of uninitialized value in numeric eq (==) at line 253 of [PG]/macros/niceTables.pl
It seems that niceTables is expecting style info like i=>1 or b=>1, but surely it will substitute default values if those options are missing?