[LON-CAPA-cvs] cvs: loncom /homework/caparesponse caparesponse.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 26 Feb 2004 21:25:28 -0000
albertel Thu Feb 26 16:25:28 2004 EDT
Modified files:
/loncom/homework/caparesponse caparesponse.pm
Log:
- reverting back to pre 1.136
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.136 loncom/homework/caparesponse/caparesponse.pm:1.137
--- loncom/homework/caparesponse/caparesponse.pm:1.136 Thu Feb 26 16:13:54 2004
+++ loncom/homework/caparesponse/caparesponse.pm Thu Feb 26 16:25:28 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# caparesponse definition
#
-# $Id: caparesponse.pm,v 1.136 2004/02/26 21:13:54 sakharuk Exp $
+# $Id: caparesponse.pm,v 1.137 2004/02/26 21:25:28 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -461,8 +461,8 @@
&Apache::lonxml::debug("Answer was :$answer: returning :".$#bubble_values.": whih are :".join(':',@bubble_values));
&Math::Random::random_set_seed(@oldseed);
if (defined($format) && $format ne '') {
- for(my $i=0;$i<=$#bubble_values;$i++) {
- $bubble_values[$i]=&format_number($bubble_values[$i],$format,$target);
+ foreach my $value (@bubble_values) {
+ $value=&format_number($value,$format,$target);
}
}
return @bubble_values;