| I've got no problem when I compile the following two equivalent expressions using "perl *.pl" from the command line.
----------------------------------------------
$string= "[ -1 0 -2 ]\n[ 0 1 1 ]\n[ 1 0 1 ]\n";
$G=MatrixReal1->new_from_string($string);
--------------------------------------------
$G=MatrixReal1->new_from_string(<<"MATRIX");
[ -1 0 -2 ]
[ 0 1 1 ]
[ 1 0 1 ]
MATRIX
-------------------------------------------
With second code, everything was O.K.
But an error message came up when I tried to see on the webpage with first code and the error is :
-------------------------------------------------
Software error
Can't use an undefined value as an ARRAY reference at /usr/calculus/webwork/system/courseScripts/displayMacros.pl line 582.
main::l2h_sticky_answers called at /usr/calculus/webwork/system/cgi/cgi-scripts/processProblem8.pl line 471 eval {...} called at /usr/calculus/webwork/system/cgi/cgi-scripts/processProblem8.pl line 78
------------------------------------------------
Any comment will be helpful.
Thanks in advance.
cwyi.
<| Post or View Comments |>
|