[LON-CAPA-cvs] cvs: loncom /homework default_homework.lcpm
albertel
lon-capa-cvs@mail.lon-capa.org
Tue, 25 Mar 2003 23:05:03 -0000
albertel Tue Mar 25 18:05:03 2003 EDT
Modified files:
/loncom/homework default_homework.lcpm
Log:
- defined(@array) deprecated
- double declare removed
Index: loncom/homework/default_homework.lcpm
diff -u loncom/homework/default_homework.lcpm:1.59 loncom/homework/default_homework.lcpm:1.60
--- loncom/homework/default_homework.lcpm:1.59 Tue Mar 25 18:00:18 2003
+++ loncom/homework/default_homework.lcpm Tue Mar 25 18:05:03 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# used by lonxml::xmlparse() as input variable $safeinit to Apache::run::run()
#
-# $Id: default_homework.lcpm,v 1.59 2003/03/25 23:00:18 albertel Exp $
+# $Id: default_homework.lcpm,v 1.60 2003/03/25 23:05:03 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -142,7 +142,7 @@
}
$GET_ARRAY_ARGS_result.="error:$@:\n";
# if the eval fails just use what is in the answer exactly
- if (!defined(@GET_ARRAY_ARGS_list) || !defined($GET_ARRAY_ARGS_list[0])) {
+ if (!(@GET_ARRAY_ARGS_list) || !defined($GET_ARRAY_ARGS_list[0])) {
$GET_ARRAY_ARGS_result.="list zero is undefined\n";
$GET_ARRAY_ARGS_list[0]=$CAPARESPONSE_CHECK_LIST_answer;
}
@@ -151,7 +151,6 @@
sub caparesponse_check_list {
my ($response,$expr)=@_;
- my $result;
$expr =~ s/\\/\\\\/g;
$expr =~ s/\'/\\\'/g;
my ($result,@list) = &get_array_args($expr,'answer');