[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm

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


raeburn		Sun Nov 12 23:06:10 2017 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm 
  Log:
  - Use three-argument open() to separate file mode from the filename.
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.658 loncom/interface/lonprintout.pm:1.659
--- loncom/interface/lonprintout.pm:1.658	Mon May 29 22:43:07 2017
+++ loncom/interface/lonprintout.pm	Sun Nov 12 23:06:10 2017
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.658 2017/05/29 22:43:07 raeburn Exp $
+# $Id: lonprintout.pm,v 1.659 2017/11/12 23:06:10 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -889,7 +889,7 @@
     my $londocroot = $Apache::lonnet::perlvar{'lonDocRoot'};
     $file =~ s{(.*)/res/}{$londocroot/res/};
 
-    open(FILE,">>$Apache::lonnet::perlvar{'lonPrtDir'}/$env{'user.name'}_$env{'user.domain'}_printout.dat");
+    open(FILE,">>","$Apache::lonnet::perlvar{'lonPrtDir'}/$env{'user.name'}_$env{'user.domain'}_printout.dat");
     print FILE ("$file\n");
     close (FILE);
 




More information about the LON-CAPA-cvs mailing list