--- loncom/interface/lonindexer.pm 2014/05/31 16:01:33 1.221 +++ loncom/interface/lonindexer.pm 2014/12/11 01:46:17 1.222 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Directory Indexer # -# $Id: lonindexer.pm,v 1.221 2014/05/31 16:01:33 raeburn Exp $ +# $Id: lonindexer.pm,v 1.222 2014/12/11 01:46:17 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -623,7 +623,7 @@ END # ----------------- read in what directories have previously been set to "open" - foreach (keys %hash) { + foreach (keys(%hash)) { if ($_ =~ /^diropen_status_/) { my $key = $_; $key =~ s/^diropen_status_//; @@ -754,7 +754,7 @@ sub get_list { (my $luri = $uri) =~ s/\//_/g; if ($env{'form.updatedisplay'}) { - foreach (keys %hash) { + foreach (keys(%hash)) { delete $hash{$_} if ($_ =~ /^dirlist_files_/); delete $hash{$_} if ($_ =~ /^dirlist_timestamp_files_/); } @@ -1432,7 +1432,7 @@ sub start_fresh_session { delete $hash->{'form.element'}; delete $hash->{'form.omit'}; delete $hash->{'form.only'}; - foreach (keys %{$hash}) { + foreach (keys(%{$hash})) { delete $hash->{$_} if (/^(pre_|store)/); } }