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

raeburn raeburn at source.lon-capa.org
Mon Dec 15 12:39:24 EST 2014


raeburn		Mon Dec 15 17:39:24 2014 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
  Log:
  - Coding style: 
     - keys(), sort()
     - standard indent is four spaces 
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.550 loncom/xml/lonxml.pm:1.551
--- loncom/xml/lonxml.pm:1.550	Mon Aug 25 00:20:55 2014
+++ loncom/xml/lonxml.pm	Mon Dec 15 17:39:24 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module 
 #
-# $Id: lonxml.pm,v 1.550 2014/08/25 00:20:55 raeburn Exp $
+# $Id: lonxml.pm,v 1.551 2014/12/15 17:39:24 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -229,11 +229,10 @@
 }
 
 sub printalltags {
-  my $temp;
-  foreach $temp (sort keys %Apache::lonxml::alltags) {
-    &Apache::lonxml::debug("$temp -- ".
-		  join(',',@{ $Apache::lonxml::alltags{$temp} }));
-  }
+    foreach my $temp (sort(keys(%Apache::lonxml::alltags))) {
+        &Apache::lonxml::debug("$temp -- ".
+                               join(',',@{ $Apache::lonxml::alltags{$temp} }));
+    }
 }
 
 sub xmlparse {
@@ -2054,7 +2053,7 @@
 	    my $declutter=&Apache::lonnet::declutter($env{'request.filename'});
             my $baseurl = &Apache::lonnet::clutter($declutter);
 	    my @userlist;
-	    foreach (keys %users) {
+	    foreach (keys(%users)) {
 		my ($user,$domain) = split(/:/, $_);
 		push(@userlist,"$user:$domain");
 		my $key=$declutter.'_'.$user.'_'.$domain;




More information about the LON-CAPA-cvs mailing list