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

raeburn raeburn at source.lon-capa.org
Wed Dec 10 19:31:05 EST 2014


raeburn		Thu Dec 11 00:31:05 2014 EDT

  Modified files:              
    /loncom/interface	groupsort.pm 
  Log:
  - Coding style: keys()
  
  
Index: loncom/interface/groupsort.pm
diff -u loncom/interface/groupsort.pm:1.73 loncom/interface/groupsort.pm:1.74
--- loncom/interface/groupsort.pm:1.73	Mon Jul 15 14:32:44 2013
+++ loncom/interface/groupsort.pm	Thu Dec 11 00:31:05 2014
@@ -2,7 +2,7 @@
 # The LON-CAPA group sort handler
 # Allows for sorting prior to import into RAT.
 #
-# $Id: groupsort.pm,v 1.73 2013/07/15 14:32:44 bisitz Exp $
+# $Id: groupsort.pm,v 1.74 2014/12/11 00:31:05 raeburn Exp $
 # 
 # Copyright Michigan State University Board of Trustees
 #
@@ -59,7 +59,7 @@
 	$ac++;
     }
     # sorting through the actions and changing the global database hash
-    foreach my $key (sort {$achash{$a}<=>$achash{$b}} (keys %ahash)) {
+    foreach my $key (sort {$achash{$a}<=>$achash{$b}} (keys(%ahash))) {
 	if ($ahash{$key} eq '1') {
 	    $hash->{'store_'.$hash->{'pre_'.$key.'_link'}}=
 		$hash->{'pre_'.$key.'_title'};




More information about the LON-CAPA-cvs mailing list