[LON-CAPA-cvs] cvs: loncom /xml lonxml.pm

raeburn raeburn at source.lon-capa.org
Sun Nov 12 18:10:33 EST 2017


raeburn		Sun Nov 12 23:10:33 2017 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
  Log:
  - Use three-argument open() to separate file mode from the filename.
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.558 loncom/xml/lonxml.pm:1.559
--- loncom/xml/lonxml.pm:1.558	Sun Sep 24 01:52:53 2017
+++ loncom/xml/lonxml.pm	Sun Nov 12 23:10:33 2017
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module 
 #
-# $Id: lonxml.pm,v 1.558 2017/09/24 01:52:53 raeburn Exp $
+# $Id: lonxml.pm,v 1.559 2017/11/12 23:10:33 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2274,7 +2274,7 @@
 
 sub dump_insertlist {
     my ($ext) = @_;
-    open(XML,">/tmp/insertlist.xml.$ext");
+    open(XML,">","/tmp/insertlist.xml.$ext");
     print XML ("<insertlist>");
     my $i=0;
 




More information about the LON-CAPA-cvs mailing list