version 1.1, 2010/12/20 18:14:18
|
version 1.3, 2010/12/21 01:53:13
|
Line 10 sub fact {
|
Line 10 sub fact {
|
} |
} |
|
|
$testvalues='0=1'; |
$testvalues='0=1'; |
for ($i=1,3) { |
foreach $i (1..3) { |
$rand=&random(3,8,1); |
$rand=&random(3,8,1); |
$testvalues.=','.$rand.'='.&fact($rand); |
$testvalues.=','.$rand.'='.&fact($rand); |
} |
} |
Line 21 for ($i=1,3) {
|
Line 21 for ($i=1,3) {
|
<instructorcomment> |
<instructorcomment> |
Sample code for an evaluation script can be found <a href="/res/adm/includes/templates/sampleexternal.pl">here.</a></instructorcomment> |
Sample code for an evaluation script can be found <a href="/res/adm/includes/templates/sampleexternal.pl">here.</a></instructorcomment> |
<endouttext /> |
<endouttext /> |
<externalresponse url="http://localhost/cgi-bin/sampleexternal.pl" answer="$testvalues"> |
<externalresponse url="http://localhost/cgi-bin/sampleexternal.pl" answer="$testvalues" answerdisplay="The most elegant (and dangerous) solution is recursive."> |
<textfield /> |
<textfield /> |
|
|
</externalresponse> |
</externalresponse> |