[LON-CAPA-cvs] cvs: loncom(version_2_3_X) /homework/caparesponse caparesponse.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Tue, 19 Dec 2006 00:53:57 -0000
albertel Mon Dec 18 19:53:57 2006 EDT
Modified files: (Branch: version_2_3_X)
/loncom/homework/caparesponse caparesponse.pm
Log:
- backport 1.203 1.204
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.198.2.1 loncom/homework/caparesponse/caparesponse.pm:1.198.2.2
--- loncom/homework/caparesponse/caparesponse.pm:1.198.2.1 Mon Dec 18 18:31:32 2006
+++ loncom/homework/caparesponse/caparesponse.pm Mon Dec 18 19:53:57 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# caparesponse definition
#
-# $Id: caparesponse.pm,v 1.198.2.1 2006/12/18 23:31:32 albertel Exp $
+# $Id: caparesponse.pm,v 1.198.2.2 2006/12/19 00:53:57 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -40,6 +40,11 @@
}
my %answer;
+my @answers;
+sub get_answer { return %answer; };
+sub push_answer{ push(@answers,dclone(\%answer)); undef(%answer) }
+sub pop_answer { %answer = %{pop(@answers)}; };
+
my $cur_name;
my $tag_internal_answer_name = 'INTERNAL';