[LON-CAPA-cvs] cvs: loncom /homework default_homework.lcpm

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 25 Mar 2003 22:53:22 -0000


albertel		Tue Mar 25 17:53:22 2003 EDT

  Modified files:              
    /loncom/homework	default_homework.lcpm 
  Log:
  - @_[] is perl 6 not perl 5
  
  
Index: loncom/homework/default_homework.lcpm
diff -u loncom/homework/default_homework.lcpm:1.57 loncom/homework/default_homework.lcpm:1.58
--- loncom/homework/default_homework.lcpm:1.57	Wed Feb 12 17:45:01 2003
+++ loncom/homework/default_homework.lcpm	Tue Mar 25 17:53:22 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.57 2003/02/12 22:45:01 albertel Exp $
+# $Id: default_homework.lcpm,v 1.58 2003/03/25 22:53:22 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -202,15 +202,15 @@
 
 sub tex {
   if ( $external::target eq "tex" ) {
-    return @_[0];
+    return $_[0];
   } else {
-    return @_[1];
+    return $_[1];
   }
 }
 
 sub var_in_tex {
   if ( $external::target eq "tex" ) {
-    return @_[0];
+    return $_[0];
   } else {
     return "";
   }
@@ -218,12 +218,12 @@
 
 sub web {
   if ( $external::target eq "tex" ) {
-    return @_[1];
+    return $_[1];
   } else {
     if ( $external::target eq "web" || $external::target eq "answer") {
-      return @_[2];
+      return $_[2];
     } else {
-      return @_[0];
+      return $_[0];
     }
   }
 }