[LON-CAPA-cvs] cvs: loncom /homework lonhomework.pm
raeburn
raeburn at source.lon-capa.org
Wed Dec 10 20:23:55 EST 2014
raeburn Thu Dec 11 01:23:55 2014 EDT
Modified files:
/loncom/homework lonhomework.pm
Log:
- Coding style: sort() keys()
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.345 loncom/homework/lonhomework.pm:1.346
--- loncom/homework/lonhomework.pm:1.345 Thu Aug 7 19:53:19 2014
+++ loncom/homework/lonhomework.pm Thu Dec 11 01:23:55 2014
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Homework handler
#
-# $Id: lonhomework.pm,v 1.345 2014/08/07 19:53:19 musolffc Exp $
+# $Id: lonhomework.pm,v 1.346 2014/12/11 01:23:55 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -590,7 +590,7 @@
sub showhashsubset {
my ($hash,$keyre) = @_;
my $resultkey;
- foreach $resultkey (sort keys %$hash) {
+ foreach $resultkey (sort(keys(%$hash))) {
if ($resultkey !~ /$keyre/) { next; }
if (ref($$hash{$resultkey}) eq 'ARRAY' ) {
&Apache::lonxml::debug("$resultkey ---- ".
More information about the LON-CAPA-cvs
mailing list