Questions:

1. To get the student's response I am setting up a matrix A by

$A = Matrix ([0,0,0],[0,0,0],[0,0,0]);

and then prompting for it in the BEGIN_TEXT, END_TEXT block with

\{$A->ans_array (10)\}

Is there a better way to get the student response?

2. Since many matrices answer the above question, I need a custom answer checker. I have a Perl subroutine that I call that starts as

sub mycheck{

my ($correct, $student, $ansHash) = @_;

and gets called by

ANS ($A->cmp(checker=>~~&mycheck));

I think that $student ends up with a pointer to the student's answer. But what are $correct and $ansHash?

Also, can any of these be a pointer to a matrix? Do any of them point to matrix A above?