[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

raeburn lon-capa-cvs@mail.lon-capa.org
Wed, 18 Oct 2006 02:39:14 -0000


raeburn		Tue Oct 17 22:39:14 2006 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  &auto_instcode_defaults() sets values for code_order and returnhash.
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.795 loncom/lonnet/perl/lonnet.pm:1.796
--- loncom/lonnet/perl/lonnet.pm:1.795	Tue Oct 17 11:15:51 2006
+++ loncom/lonnet/perl/lonnet.pm	Tue Oct 17 22:39:12 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.795 2006/10/17 15:15:51 albertel Exp $
+# $Id: lonnet.pm,v 1.796 2006/10/18 02:39:12 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4266,9 +4266,9 @@
             foreach my $pair (split(/\&/,$response)) {
                 my ($name,$value)=split(/\=/,$pair);
                 if ($name eq 'code_order') {
-                    $code_order = [split(/\&/,&unescape($value))];
+                    @{$code_order} = split(/\&/,&unescape($value));
                 } else {
-                    $$returnhash{&unescape($name)}=&unescape($value);
+                    $returnhash->{&unescape($name)}=&unescape($value);
                 }
             }
         }